Sending e-mail System.Net.Mail

Discussion in 'ASP.NET / ASP.NET Core' started by Helder, Apr 19, 2010.

  1. Hi,

    Is it possible, using System.Net.Mail, to send a e-mail from a webpage?

    Something like the "classic" asp CDO:

    ....

    Set .Configuration = iConf
    .To = xxxx
    .From = xxxx
    .Subject = xxxx
    .CreateMHTMLBody "http:\\www......"

    ....

    I can workaround the CreateMHTMLBody by making a webrequest to the page that i want to send but, isn't there a more simpler way?

    Helder Oliveira
     
  2. dmitri

    dmitri DiscountASP.NET Staff

    Please see this post where you will find code samples.
     
  3. Bruce

    Bruce DiscountASP.NET Staff

Share This Page