How to enable smtp authentication using asp.net 1.1?

H

hyper

The MailMessage class in System.Web.Mail in asp.net 1.1 doesn't contain any
API that perform authentication.
I found an article about this subject:
How to enable SMTP Authentication using System.Web.Mail
at http://support.microsoft.com/default.aspx?scid=kb;en-us;555287 . I've
tried that approach, yet failed.
Following are the key section of its sample code:
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",
cdoBasic);
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",
userName);
msg.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",
password);
I guess this approach is apply to those who using Exchange as their mail
server. So what shall I do
to solve this problem?
btw: I know that SmtpClient class in System.Net.Mail in asp.net 2.0 has a
Credential property, but I just
can't use .net 2.0 at present.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,582
Members
45,071
Latest member
MetabolicSolutionsKeto

Latest Threads

Top