You have to log in hte mailserver I think to be able to relay. If you
use CDONTS you're probably logging in using windows authentication,
which means you are then authenticated and allowed to relay mail using
that server. The other mechanism isn't logging in and is just dumping a
mailmessage on port 25 of the mailserver, which is rejected due to
relaying restrictions. These relaying restrictions are ofcourse defined
to limit spamming through a mailserver.
FB
> I am getting the following error while sending mail from
> asp.net using SmtpMail Object.
>
> The Server rejected One or More recipient address. The server
> response was 550 5.7.1 Unable to relay for [EMAIL PROTECTED]
>
> Dim mailobj As new MailMessage
>
> mailobj.To = "[EMAIL PROTECTED]"
> mailobj.From = "[EMAIL PROTECTED]"
> mailobj.Body = "aadasdadadada"
>
> SmtpMail.SmtpServer = "127.0.0.1"
> SmtpMail.Send(mailobj)
>
> However the mail is dispatching if I am using CDONTS, Using
> Server.CreateObject .
>
> Whts worng with the code, am I amissing something.
>
> Thanx
>
> Ankit
>
>
>
>
>
> ===================================
> This list is hosted by DevelopMentor(r) http://www.develop.com
> Some .NET courses you may be interested in:
>
> NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
> http://www.develop.com/courses/gaspdotnetls
>
> View archives and manage your subscription(s) at
> http://discuss.develop.com
>
>
>
===================================
This list is hosted by DevelopMentor� http://www.develop.com
Some .NET courses you may be interested in:
NEW! Guerrilla ASP.NET, 26 Jan 2004, in Los Angeles
http://www.develop.com/courses/gaspdotnetls
View archives and manage your subscription(s) at http://discuss.develop.com