Home All Groups Group Topic Archive Search About
Author
6 Sep 2006 7:49 AM
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.

Author
6 Sep 2006 12:41 PM
Terry Olsen
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.
>
Author
6 Sep 2006 2:00 PM
Max
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.
> >