473,498 Members | 1,907 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2133
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
5379
by: Jack Smith | last post by:
I am unable to connect to certain SQL servers from PHP on IIS. I have two IIS 5 servers, both are Windows 2000 Server boxes with PHP 4.3.4 and MDAC 2.80.1022.3. I have three SQL Server machines...
0
1242
by: Luis Carvalho | last post by:
Hi!! I'm developping a web app that uses the windows authetication to manage it's permissions. In other words, I want only the users that can get in my win2000 machine to be able to access the...
1
1180
by: galaxy_vincent | last post by:
Anyone can share with me how to conduct an Active Directory Authetication in Dot Net Application? Thanks. *-----------------------* Posted at: www.GroupSrv.com *-----------------------*
1
3531
by: Eli Allen | last post by:
So now that MS04-004 is out breaking the ability to pass in a password/username through the URL how can we pass in a username and password using SHDocVw in c#? I'm launching IE like this:...
4
14789
by: Evgeny Zoldin | last post by:
Hi ALL. I would like to download file from some web-server that requires Basic-Authetication, change somthing in the file and upload it back to the server. I can download the file and proceed...
1
244
by: Sunny | last post by:
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...
1
1781
by: ruca | last post by:
hi, Can Anyone tell me or indicate some sites to get information, what's the differences between calling my Web Application with an Ip Address or the Server Name??? Example: Ip Address...
1
1175
by: User | last post by:
Are there ways to do http authetication? Or able to emulate .htaccess For eg: User reach a directory, there will be a pop up asking the user to enter a user id and password pls advise....
2
2272
by: gnewsgroup | last post by:
OK, I know this has been a popular question from newbies. But, please don't haste to reply yet. I've googled and tested for a few hours, and cannot have this problem resolved. I have...
0
7004
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...
0
7167
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7208
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6890
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
3095
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3085
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1423
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 ...
1
657
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
292
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.