473,473 Members | 2,159 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

503 This mail server requires authentication

Das
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
Nov 18 '05 #1
2 3403
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

Nov 18 '05 #2
Das
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


Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Google Mike | last post by:
There seems to be a lot of white noise in trying to understand SMTP that requires authentication when searching the newsgroups via Google Groups or searching the PHP.net website. The PHP fsockopen...
1
by: tzuccolo2001 | last post by:
I'm trying to send an email using the mail() function. I've carefully made use of the ini_set(SMTP, "mail.my.server") function to set my SMTP server and also to set my From: address. I'm still...
3
by: dale zhang | last post by:
Hi, I write an asp.net web application. It has a “Contact Us” page, where users fill in their email, subject and text and hit send. Then the email will go to my hard coded yahoo email...
0
by: techie | last post by:
I'm trying to use system.web.mail to send an email, but the smtp server requires authentication. I came across some info about fields property Dim mail As New MailMessage() mail.To =...
4
by: Brett Porter | last post by:
Hi, My ASP.Net applications frequently make use of the System.Web.Mail namespace to send emails. I have set SmtpMail.SmtpServer = "localhost" and the emails send out fine UNTIL an email is sent...
6
by: AbraAbraCadabra | last post by:
Ok I think I've almost got my problem solved. I am using this code to send mail. I am simply pasting it into an .ASP page. Why doesn't this code work? I do have ..NET 2.0 installed, but I...
0
by: Neo Geshel | last post by:
I am experiencing an inconsistency with System.Net.Mail. I have a web form on a site. The form gets filled, and one copy gets sent to the recipient (info@domain.com). This works just fine. ...
2
by: Dave | last post by:
Hi, I hope someone can help, I'm trying to get mail out from a form to a php page using the mail() function. Nothing happens. The server is W2003 and the mail application is Kerio Mailserver, not...
1
by: Jeff | last post by:
I am receiving the following error: // error: System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.7.0 No...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development projectplanning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.