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

USe SMTP to Send Mail

P: n/a
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.

Sep 6 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"Max" <ma***********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
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.
Sep 6 '06 #2

P: n/a
Max
thanks

Mark Rae wrote:
"Max" <ma***********@gmail.comwrote in message
news:11**********************@p79g2000cwp.googlegr oups.com...
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.
Sep 6 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.