Hi all,

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Ū  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

Reply via email to