sending emails via site.

  • Thread starter Thread starter Mr. X.
  • Start date Start date
M

Mr. X.

Hello,

What may be the problem of sending email via my site.

I use something like :
(VB - on aspx page)

dim mail as new MailMessage
mail.from = (e-mail address removed) (this email is correct and configured on the
site).
mail.to = (e-mail address removed) (any correct email).
mail.body = "..."

mail.BodyEncoding = System.Text.Encoding.GetEncoding(1255)
SmtpMail.SmtpServer = "mail.myserver.com"
SmtpMail.Send(mail)
....
Then I get the message :
503 This mail server requires authentication ...


Thanks :)
 
....
also before sending I did :
mail.BodyFormat = MailFormat.Html
....
the rest of code is the same.

Thanks :)
 
Back
Top