By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
448,967 Members | 1,625 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 448,967 IT Pros & Developers. It's quick & easy.

sending emails via site.

P: n/a
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 = su*****@mysite.com (this email is correct and configured on the
site).
mail.to = so*********@somecompany.com (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 :)
Sep 6 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
"Mr. X." <no_spam_please@nospam_please.comwrote in message
news:g9**********@news4.netvision.net.il...
503 This mail server requires authentication ...
This message, and ways to work round it, are all over Google:
http://www.google.co.uk/search?sourc...hentication%22

http://www.systemnetmail.com/faq/4.2.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 6 '08 #2

P: n/a
....
also before sending I did :
mail.BodyFormat = MailFormat.Html
....
the rest of code is the same.

Thanks :)
Sep 6 '08 #3

P: n/a
Thanks,
I will check that out.

Still I don't understand why microsoft itself on its web site,
doesn't show all of the members of smtpMail (there is no clue for
NetorkCredentails,
even from and to are not known members).
see :
http://msdn.microsoft.com/en-us/libr...mberFilterText

Thanks :)
Sep 6 '08 #4

P: n/a
"Mr. X." <no_spam_please@nospam_please.comwrote in message
news:g9**********@news4.netvision.net.il...
Still I don't understand why microsoft itself on its web site,
doesn't show all of the members of smtpMail
It does.

(there is no clue for NetorkCredentails,
Credentials are members of the SmtpClient class:
http://msdn.microsoft.com/en-us/libr...edentials.aspx

even from and to are not known members).
From and To etc are members of the MailMessage class
http://msdn.microsoft.com/en-us/libr...ilmessage.aspx
--
Mark Rae
ASP.NET MVP
http://www.markrae.net

Sep 6 '08 #5

P: n/a

Try this:
http://sholliday.spaces.live.com/Blog/cns!A68482B9628A842A!138.entry

1.1 and 2.0 downloadable code.

It takes the smtp headaches out of smtp.

"Mr. X." <no_spam_please@nospam_please.comwrote in message
news:g9**********@news4.netvision.net.il...
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 = su*****@mysite.com (this email is correct and configured on
the site).
mail.to = so*********@somecompany.com (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 :)

Sep 6 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.