Hi Girish,
I have seen the code given:
Mail.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
Mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername")
= "myUser"
Mail.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword")
= "myPwd"
but I'm using vs.net 2002 & .net framework 1.1. In my vs2002 it doesn't show
me the option for
mail.Fields();
How should I handle this.
Thanks.
das
"Girish Bharadwaj" wrote:
Well, you need to authenticate (i.e. you have to pass Username/password to
SMTP server). This is nowadays standard on most SMTP servers.
http://weblogs.asp.net/gad/archive/2.../02/35288.aspx shows the way of
setting that up before making the request.
--
Girish Bharadwaj
http://msmvps.com/gbvb
"Das" <Da*@discussions.microsoft.com> wrote in message
news:07**********************************@microsof t.com... Hi,
I'm using the following code for sending the e-mail. When I send the mail
to the same saver it works fine. but if I send mail to different server like
yahoo or anyother server. if gives me the following error:
The server rejected one or more recipient addresses. The server response
was: 503 This mail server requires authentication. Please check your mail
client settings.
MailMessage myMail = new MailMessage();
myMail.From="ac.xyx.com";
myMail.To= "ab*@yahoo.com";
myMail.Subject="Order received";
myMail.Body="Body for the text";
SmtpMail.SmtpServer=myMailserver;
SmtpMail.Send (myMail);
Regards,
Das