Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old September 6th, 2008, 11:15 AM
Mr. X.
Guest
 
Posts: n/a
Default sending emails via site.

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 = support@mysite.com (this email is correct and configured on the
site).
mail.to = someonelese@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 :)


  #2  
Old September 6th, 2008, 11:45 AM
Mark Rae [MVP]
Guest
 
Posts: n/a
Default Re: sending emails via site.

"Mr. X." <no_spam_please@nospam_please.comwrote in message
news:g9tkej$7kv$1@news4.netvision.net.il...
Quote:
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

  #3  
Old September 6th, 2008, 11:45 AM
Mr. X.
Guest
 
Posts: n/a
Default Re: sending emails via site.

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

Thanks :)


  #4  
Old September 6th, 2008, 12:45 PM
Mr. X.
Guest
 
Posts: n/a
Default Re: sending emails via site.

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 :)


  #5  
Old September 6th, 2008, 01:05 PM
Mark Rae [MVP]
Guest
 
Posts: n/a
Default Re: sending emails via site.

"Mr. X." <no_spam_please@nospam_please.comwrote in message
news:g9tpm2$pnp$1@news4.netvision.net.il...
Quote:
Still I don't understand why microsoft itself on its web site,
doesn't show all of the members of smtpMail
It does.

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

Quote:
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

  #6  
Old September 6th, 2008, 11:05 PM
sloan
Guest
 
Posts: n/a
Default Re: sending emails via site.


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:g9tkej$7kv$1@news4.netvision.net.il...
Quote:
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 = support@mysite.com (this email is correct and configured on
the site).
mail.to = someonelese@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 :)
>

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles