USe SMTP to Send Mail

M

Max

hi

I am using System.Web.Mail.MailMessage with System.Web.Mail.SmtpMail to
send mail. now the my question is,

Is it compulsory to add fields smtpauthenticate, sendusername and
sendpassword fields to MailMessage Object????.

mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate",
"1")
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendusername",
SMTPEmail)
mm.Fields.Add("http://schemas.microsoft.com/cdo/configuration/sendpassword",
SMTPPassword)

Which fields will i have to add if my SMTP Server doesn't require
authentication.
 
M

Mark Rae

Is it compulsory to add fields smtpauthenticate, sendusername and
sendpassword fields to MailMessage Object????.

Only if your mail server requires authentication...
Which fields will i have to add if my SMTP Server doesn't require
authentication.

None.
 

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

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,705
Latest member
Stefkari24

Latest Threads

Top