This is a discussion on Send Mail Using SMTP within the Microsoft .NET forums, part of the Programming Talk category; hi I am using System.Web.Mail.MailMessage with System.Web.Mail.SmtpMail to send mail. now the my question ...
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Send Mail Using SMTP
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. |
|
||||
|
HI,
you need not add any of the above 3 fields to send a mail from your local machine to any Email id. what you need are : from , to , Subject thatz all.. if you have any doubts you can mail me at svs_i43@yahoo.com gud luck. |
![]() |
| Thread Tools | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Hiring freshers | hr_Joseph | Freshers Jobs | 0 | 05-26-2005 01:57 PM |
| Hiring freshers | hr_Joseph | Freshers Jobs | 0 | 05-26-2005 01:56 PM |
| Over 45 Listings for Freshers 2004 and 2005 | admin | Freshers Jobs | 1 | 05-05-2005 08:07 AM |
| Regarding SMTP and Java Mail System | ajagania | Java Tutorials | 0 | 10-29-2004 12:10 PM |
| Send upto 1GB attachment to any mail | sanereddy | Chit-Chat | 0 | 07-22-2004 10:17 PM |