473,626 Members | 3,183 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 2159
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
1792
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
2281
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
8265
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
8196
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
8637
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...
0
8504
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
7193
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 project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4092
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4197
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2625
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 we have to send another system
1
1808
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.