|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Send Mail Using SMTPhi
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. If the server doesn't require authentication, all you need are the
basics...From,To,Subj,Body. Show quoteHide quote "Max" <mahesh.anj***@gmail.com> wrote in message news:1157528991.442172.66030@i3g2000cwc.googlegroups.com... > 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. > thanks
Terry Olsen wrote: Show quoteHide quote > If the server doesn't require authentication, all you need are the > basics...From,To,Subj,Body. > > "Max" <mahesh.anj***@gmail.com> wrote in message > news:1157528991.442172.66030@i3g2000cwc.googlegroups.com... > > 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. > >
Registry Reading
Remove certain characters from a string/RichTextBox? [Regular Expression] extraction when bounds are vbCr and vbLf Better way to process many conditions with If Then Crystal Reports in VB.NET Determining max number of characters in a TextBox datagridview.SelectedRows returns last row first? how to get a file to display from relative filespec Deleting a folder SQL Server |
|||||||||||||||||||||||