Exforsys
+ Reply to Thread
Results 1 to 2 of 2

Send Mail Using SMTP

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 is, Is it compulsory to add ...

  1. #1
    mahehs_k_anjani is offline Junior Member Array
    Join Date
    Jul 2006
    Answers
    3

    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.


  2. #2
    svs_aditya's Avatar
    svs_aditya is offline Aditya Array
    Join Date
    Jul 2006
    Location
    India
    Answers
    10
    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.


Latest Article

Network Security Risk Assessment and Measurement

Read More...