473,320 Members | 1,958 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 2116
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
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
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
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
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
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
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
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
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
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
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

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.