I have used mailing in asp on local host which worked fine but The prob has occurred when i hosted the pages the error message is: Failure sending mail.
and the code i am using:
Dim message As New MailMessage message.From = New MailAddress("firstname.lastname@example.org") message.To.Add(New MailAddress("email@example.com")) message.Subject = test mail"" message.Body = "Hi you have got a test mail from me! Dim client As New SmtpClient client.Credentials = New System.Net.NetworkCredential("firstname.lastname@example.org", "xxxxxxx") client.Port = 587 client.Host = "smtp.gmail.com" client.EnableSsl = True client.Send(message)
Please help me!