I found the solution. Add these fields to your Message object before
sending:
Message
..Fields["http://schemas.microso ft.com/cdo/configuration/smtpauthenticat e"] =
1;
Message
..Fields["http://schemas.microso ft.com/cdo/configuration/sendusername"] =
"myusername ";
Message
..Fields["http://schemas.microso ft.com/cdo/configuration/sendpassword"] =
"mypass";
"Jack Fox" <ja*****@ix.net com.com> wrote in message
news:dX******** *********@newsr ead3.news.pas.e arthlink.net...
Suddenly I need to change an email sending program from using SMTP to
Authenticated SMTP (ASMTP), and my old code
SmtpMail.SmtpSe rver = "my.smtpauth.se rver";
SmtpMail.Send(M essage);
no longer works.
Somehow I need to pass my password to the ASMTP server, but the SmtpMail
object doesn't appear to support this. Is there a work-around?