Aloha,
I made an aspx web form in visual basic. It is a contact form for users to fill out then submit it by clicking the send button which is supposed to send their info via email. I tried many different things from port numbers and smtp settings and can't seem
to get it working. Please someone, look over my code and tell me what is wrong. Any and all help is appreciated.
This is my VB file behind my aspx page
Imports System.IO
Imports System.Net
Imports System.Net.Mail
Imports System.Net.Mail.MailMessage
Imports System.Net.NetworkCredential
Partial Class Contact
Inherits System.Web.UI.Page
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
lblDateString.Text = DateTime.Now.ToString("MM-dd-yyyy h:mmtt")
End Sub
Protected Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
Dim mail As New MailMessag ...
Go to the complete details ...