Monday, March 26, 2012

Html formatted email

Can anyone advise me on how to amend the following code to send Html formatted emails? It works perfectly in normal text format - I am a novice programmer.

<%@dotnet.itags.org.PageExplicit="true"Language="VB"Debug="True" %>

<html>

<head>

</head>

<body>

<%

Dim EMailFromAsString = Session("eMailFrom")

Dim EMailToAsString = Request.Form("txtTo")

Dim EMailSubjectAsString ="Your Report"

Dim EMailBodyAsString = Request.Form("txtNewBody")

Dim MySmtpClientAsNew System.Net.Mail.SmtpClient

MySmtpClient.Send(EMailFrom, EMailTo, EMailSubject, EMailBody)%>

Any help appreciated

Anything and everything email and .NET related can be found at:

If you are dealing with 1.1:
http://www.systemwebmail.com

Or 2.0 framework
http://www.systemnetmail.com

Both sites have working examples, diagnostic solutions, and setup


I put together a FAQ in the FAQ Forum:HOW TO: Send using System.Net.Mail

HTH,
Ryan

No comments:

Post a Comment