473,624 Members | 2,248 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.c o.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.Ba se64);

oMsg.Attachment s.Add(oAttch);

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

SmtpMail.SmtpSe rver = "mail.rediffmai l.com";

SmtpMail.Send(o Msg);

oMsg = null;

//oAttch = null;

}

catch (Exception e)

{

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

}
Jul 21 '05 #1
2 2158
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.c o.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.Ba se64);

oMsg.Attachment s.Add(oAttch);

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

SmtpMail.SmtpSe rver = "mail.rediffmai l.com";

SmtpMail.Send(o Msg);

oMsg = null;

//oAttch = null;

}

catch (Exception e)

{

Console.WriteLi ne("{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.c o.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.Ba se64);

oMsg.Attachment s.Add(oAttch);

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

SmtpMail.SmtpSe rver = "mail.rediffmai l.com";

SmtpMail.Send(o Msg);

oMsg = null;

//oAttch = null;

}

catch (Exception e)

{

Console.WriteLi ne("{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
5392
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 - two SQL2K SP3a machines and one SQL 7.0 SP4 machine. One of the SQL2K servers is the same machine as one of the IIS 5 servers. One of the IIS servers, Server1, can mssql_connect to all three SQL servers. The other IIS server, Server2, can...
0
1265
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 app. I'm using System.DirectoryServices to do this for it is what I've read. I create a new DirectoryEntry but can't ever do a bind or
1
1200
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
3543
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: http://samples.gotdotnet.com/quickstart/howto/doc/Interop/TestClient_1.aspx http://www.codeguru.com/cs_webservices/WebInt.html with this meathod of referencing SHDocVw: http://weblogs.asp.net/stevencohn/archive/2004/01/23/62117.aspx
4
14816
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 as I need, but how should I upload it back? Server provides standard HTML GUI for Browsers where client can fill appropriate input field of the form with a full name of the local file. The form uses POST method to upload file and has attribute
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 error.Could you suggest me anything in this matter. Thank you, Sunny try
1
1791
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 calling:
1
1184
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. Thanks
2
2280
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 followed articles on the web and enabled "SQL Server and Windows Authentication" for my SQL Server 2005. But, it does not solve my problem. (It is actually my default setting for my SQL Server)
0
8233
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8170
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8675
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8619
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8334
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8474
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
4173
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1784
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.