472,108 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,108 software developers and data experts.

Server 530 Authetication error

Hi,
I am new in development. I want to develop a application which send
email from yahoo acoount to rediffmail acount I am trying following
Code But its giving Server 530 Authetication error.Could you suggest
me anything in this matter.
Thank you,
Sunny

try

{

MailMessage oMsg = new MailMessage();

// TODO: Replace with sender e-mail address.

oMsg.From = "jb****@yahoo.co.in";

// TODO: Replace with recipient e-mail address.

oMsg.To = "ja************@rediffmail.com";

oMsg.Subject = "Send Using Web Mail";
// SEND IN HTML FORMAT (comment this line to send plain text).

oMsg.BodyFormat = MailFormat.Text;
// HTML Body (remove HTML tags for plain text).

oMsg.Body = "Hello World!";
// ADD AN ATTACHMENT.

// TODO: Replace with path to attachment.

String sFile = @"C:\Hello.txt";

MailAttachment oAttch = new MailAttachment(sFile,
MailEncoding.Base64);

oMsg.Attachments.Add(oAttch);

// TODO: Replace with the name of your remote SMTP server.

SmtpMail.SmtpServer = "mail.rediffmail.com";

SmtpMail.Send(oMsg);

oMsg = null;

//oAttch = null;

}

catch (Exception e)

{

Console.WriteLine("{0} Exception caught.", e);

}
Jul 21 '05 #1
2 2047
You are trying to send an email using an Rediff's SMTP Server. And it is
looking for the user credentials (user id and password) from you, and it
looks like you are not passing them, so it is throwing 530 on you.
"Sunny" wrote:
Hi,
I am new in development. I want to develop a application which send
email from yahoo acoount to rediffmail acount I am trying following
Code But its giving Server 530 Authetication error.Could you suggest
me anything in this matter.
Thank you,
Sunny

try

{

MailMessage oMsg = new MailMessage();

// TODO: Replace with sender e-mail address.

oMsg.From = "jb****@yahoo.co.in";

// TODO: Replace with recipient e-mail address.

oMsg.To = "ja************@rediffmail.com";

oMsg.Subject = "Send Using Web Mail";
// SEND IN HTML FORMAT (comment this line to send plain text).

oMsg.BodyFormat = MailFormat.Text;
// HTML Body (remove HTML tags for plain text).

oMsg.Body = "Hello World!";
// ADD AN ATTACHMENT.

// TODO: Replace with path to attachment.

String sFile = @"C:\Hello.txt";

MailAttachment oAttch = new MailAttachment(sFile,
MailEncoding.Base64);

oMsg.Attachments.Add(oAttch);

// TODO: Replace with the name of your remote SMTP server.

SmtpMail.SmtpServer = "mail.rediffmail.com";

SmtpMail.Send(oMsg);

oMsg = null;

//oAttch = null;

}

catch (Exception e)

{

Console.WriteLine("{0} Exception caught.", e);

}

Jul 21 '05 #2
You are trying to send an email using an Rediff's SMTP Server. And it is
looking for the user credentials (user id and password) from you, and it
looks like you are not passing them, so it is throwing 530 on you.
"Sunny" wrote:
Hi,
I am new in development. I want to develop a application which send
email from yahoo acoount to rediffmail acount I am trying following
Code But its giving Server 530 Authetication error.Could you suggest
me anything in this matter.
Thank you,
Sunny

try

{

MailMessage oMsg = new MailMessage();

// TODO: Replace with sender e-mail address.

oMsg.From = "jb****@yahoo.co.in";

// TODO: Replace with recipient e-mail address.

oMsg.To = "ja************@rediffmail.com";

oMsg.Subject = "Send Using Web Mail";
// SEND IN HTML FORMAT (comment this line to send plain text).

oMsg.BodyFormat = MailFormat.Text;
// HTML Body (remove HTML tags for plain text).

oMsg.Body = "Hello World!";
// ADD AN ATTACHMENT.

// TODO: Replace with path to attachment.

String sFile = @"C:\Hello.txt";

MailAttachment oAttch = new MailAttachment(sFile,
MailEncoding.Base64);

oMsg.Attachments.Add(oAttch);

// TODO: Replace with the name of your remote SMTP server.

SmtpMail.SmtpServer = "mail.rediffmail.com";

SmtpMail.Send(oMsg);

oMsg = null;

//oAttch = null;

}

catch (Exception e)

{

Console.WriteLine("{0} Exception caught.", e);

}

Jul 21 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Jack Smith | last post: by
reply views Thread by Luis Carvalho | last post: by
1 post views Thread by galaxy_vincent | last post: by
1 post views Thread by Eli Allen | last post: by
4 posts views Thread by Evgeny Zoldin | last post: by
1 post views Thread by Sunny | last post: by
1 post views Thread by ruca | last post: by
1 post views Thread by User | last post: by
reply views Thread by leo001 | last post: by

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.