Send email

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • PawelR

    #1

    Send email

    Hello, Group

    I send mail from my apps:

    using System.Web.Mail ;
    ...
    MailMessage myMail = new MailMessage();
    myMail.From = "my@email.adres s";
    myMail.To = "recipient@mail .adress";
    myMail.Subject = "Subject email";
    myMail.Body = "test mail";
    SmtpMail.SmtpSe rver = "smtp.serve r";
    SmtpMail.Send(m yMail);

    this code send mail from account without smtp authentication.

    my question:
    How send e-mail from account with smtp authentication?
    thx Pawel
Working...