Hello im trying to make a mailer.
Here is my vb code
Imports System.Net.Mail
Partial Class ContactUs
Inherits System.Web.UI.Page
Protected Sub SendEmail_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles SendEmail.Click
Dim mail As New MailMessage()
mail.From = New MailAddress(TextBoxEmail.Text.Trim()
mail.To.Add("nightwatchersmagazine@gmail.com")
mail.Subject = TextBoxSubject.Text
mail.Body = TextBoxComment.Text
mail.IsBodyHtml = False
Dim smtp As New SmtpClient
smtp.Credentials = New Net.NetworkCredential("nightwatchersmagazine@gmail.com", "blabla")
smtp.EnableSsl = True
smtp.Send(mail)
EmailSentForm.Visible = True
End Sub
End Class
And in my web.config i 've got this.
<system.net&g ...
Go to the complete details ...