By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,949 Members | 2,038 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,949 IT Pros & Developers. It's quick & easy.

Send mail when smtp need authorization

P: n/a
Hi, everbody.

How send e-mail if smtp need authorization.
If authorization is not required send email is not problem but I use
SmtpMail.Send(myMail)

PawelR
Nov 16 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
PawelR,

In this case, you will probably want to use something else. Jon Skeet
likes to mention the Indy project for this kind of thing, and from what I
have seen, it is pretty good:

http://www.indyproject.org

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"PawelR" <pa************@poczta.onet.pl> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi, everbody.

How send e-mail if smtp need authorization.
If authorization is not required send email is not problem but I use
SmtpMail.Send(myMail)

PawelR

Nov 16 '05 #2

P: n/a
Using the CDOSYS schema :

MailMessage mail = new MailMessage();

....

....

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",
"1"); //basic authentication

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",
"myAccount"); //set your username here

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",
"secret"); //set your password here


See further details and other schema options:

http://msdn.microsoft.com/library/de...ation_enum.asp

Willy.

"PawelR" <pa************@poczta.onet.pl> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi, everbody.

How send e-mail if smtp need authorization.
If authorization is not required send email is not problem but I use
SmtpMail.Send(myMail)

PawelR

Nov 16 '05 #3

P: n/a
hi ,
It can send mail with local SMTP server,but it cannot send with remote SMTP
server yahoo or lycos..
Does Anybody know this problem.

"Willy Denoyette [MVP]" wrote:
Using the CDOSYS schema :

MailMessage mail = new MailMessage();

....

....

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",
"1"); //basic authentication

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",
"myAccount"); //set your username here

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",
"secret"); //set your password here


See further details and other schema options:

http://msdn.microsoft.com/library/de...ation_enum.asp

Willy.

"PawelR" <pa************@poczta.onet.pl> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
Hi, everbody.

How send e-mail if smtp need authorization.
If authorization is not required send email is not problem but I use
SmtpMail.Send(myMail)

PawelR


Nov 16 '05 #4

P: n/a
yahoo and lycos aren't exposing smtp services.

"mustafa" <mu*************@hotmail.com> wrote in message
news:7B**********************************@microsof t.com...
hi ,
It can send mail with local SMTP server,but it cannot send with remote
SMTP
server yahoo or lycos..
Does Anybody know this problem.

"Willy Denoyette [MVP]" wrote:
Using the CDOSYS schema :

MailMessage mail = new MailMessage();

....

....

mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",
"1"); //basic authentication
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",
"myAccount"); //set your username here
mail.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",
"secret"); //set your password here


See further details and other schema options:

http://msdn.microsoft.com/library/de...ation_enum.asp

Willy.

"PawelR" <pa************@poczta.onet.pl> wrote in message
news:%2******************@TK2MSFTNGP12.phx.gbl...
> Hi, everbody.
>
> How send e-mail if smtp need authorization.
> If authorization is not required send email is not problem but I use
> SmtpMail.Send(myMail)
>
>
>
> PawelR
>
>


Nov 16 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.