Forums
This topic is locked
HTML Mail Extension for DWMX
Posted 26 Sep 2002 09:27:22
1
has voted
26 Sep 2002 09:27:22 Peter Kutschmann posted:
I'm developing an online office for our company, and am looking for a way to send HTML Mail via forms 1) for monitoring purposes and 2) to send invoices and promotions to our customers. I can use CDONTS, but of course designing the HTML Mail format is time consuming and not very attractive in appearance. For sending invoices and promotions to our customers I'm required to make an attractive HTML Mail with images etc. which has dynamic content. Any solution would be of great help (any extension similar to HTML Mail Extension Beta and works with DWMX would be superb). Deadline is by the end of this month (god, I'm a dead man...)
Replies
Replied 27 Sep 2002 12:37:43
27 Sep 2002 12:37:43 Simon Bloodworth replied:
While it may not be ideal, but you can use html in you cdo mail.
You can create your email on a seperate email html page and when finished copy all the source and use as follows:
<%
Dim myMail
Dim strSubject
Dim strBody
strSubject = request.form("therename" & ", here is your Registration Confirmation"
strBody = "<html>" & _
"<head>" & _
"</head>" & _
"<body>" & _
"<p><font face=Verdana><strong>Thankyou " & _
"for your interest.</strong></font></p>" & _
"<p><font size=2 face=Verdana>We will contact you from " & _
"time to time to make you aware of any news that we feel will interest you </font></p>" & _
"<p><font size=2 face=Verdana><strong>Name: </strong></font>" & request.form("?"& _
"<p><strong><font size=2 face=Verdana>Address: </font></strong>" & request.form("?" & _
"<p><strong><font size=2 face=Verdana>Postcode: </font></strong><font size=2 face=Verdana>:</font>" & request.form("?"& _
"<p><strong><font size=2 face=Verdana>Telephone No: </font></strong><font size=2 face=Verdana>:</font>" & request.form("?l"& _
"<p><strong><font size=2 face=Verdana>Fax No: </font></strong><font size=2 face=Verdana>:</font>" & request.form("?"& _
"<p><strong><font size=2 face=Verdana>E-mail: </font></strong><font size=2 face=Verdana>:</font>" & request.form("?"& _
"<p><font size=2 face=Verdana><strong>========================================= </strong></font></p>" & _
"</body>" & _
"</html>"
Set myMail = Server.CreateObject ("CDONTS.NewMail"
myMail.MailFormat = 0
myMail.BodyFormat = 0
myMail.From = "your email"
myMail.To = request.form("their email"
myMail.bcc = "youremail"
myMail.Subject = strSubject
myMail.Body = strBody
myMail.Send
Response.Redirect("../thankyou.asp"
set myMail=nothing
%>
The strBody is created and used to attach the email. The whole source can be used but you will see that the html needs a little editing but it will display as your html page did. You will also see that you can display content from the form on the email too.
Not sure if this helps but if it works temp untill your find a better solution then here you go.
Regards
RedLeader
You can create your email on a seperate email html page and when finished copy all the source and use as follows:
<%
Dim myMail
Dim strSubject
Dim strBody
strSubject = request.form("therename" & ", here is your Registration Confirmation"
strBody = "<html>" & _
"<head>" & _
"</head>" & _
"<body>" & _
"<p><font face=Verdana><strong>Thankyou " & _
"for your interest.</strong></font></p>" & _
"<p><font size=2 face=Verdana>We will contact you from " & _
"time to time to make you aware of any news that we feel will interest you </font></p>" & _
"<p><font size=2 face=Verdana><strong>Name: </strong></font>" & request.form("?"& _
"<p><strong><font size=2 face=Verdana>Address: </font></strong>" & request.form("?" & _
"<p><strong><font size=2 face=Verdana>Postcode: </font></strong><font size=2 face=Verdana>:</font>" & request.form("?"& _
"<p><strong><font size=2 face=Verdana>Telephone No: </font></strong><font size=2 face=Verdana>:</font>" & request.form("?l"& _
"<p><strong><font size=2 face=Verdana>Fax No: </font></strong><font size=2 face=Verdana>:</font>" & request.form("?"& _
"<p><strong><font size=2 face=Verdana>E-mail: </font></strong><font size=2 face=Verdana>:</font>" & request.form("?"& _
"<p><font size=2 face=Verdana><strong>========================================= </strong></font></p>" & _
"</body>" & _
"</html>"
Set myMail = Server.CreateObject ("CDONTS.NewMail"
myMail.MailFormat = 0
myMail.BodyFormat = 0
myMail.From = "your email"
myMail.To = request.form("their email"
myMail.bcc = "youremail"
myMail.Subject = strSubject
myMail.Body = strBody
myMail.Send
Response.Redirect("../thankyou.asp"
set myMail=nothing
%>
The strBody is created and used to attach the email. The whole source can be used but you will see that the html needs a little editing but it will display as your html page did. You will also see that you can display content from the form on the email too.
Not sure if this helps but if it works temp untill your find a better solution then here you go.
Regards
RedLeader
Replied 27 Sep 2002 17:56:32
27 Sep 2002 17:56:32 Peter Kutschmann replied:
Thanks RedLeader, seems like George might start working on the HTML Mail Extension for DWMX (which will be what many of us have been waiting for according to the forums) but your suggestion here will probably put my neck together for the time being. Thanks again for your help.
Replied 30 Sep 2002 18:41:58
30 Sep 2002 18:41:58 scre wdanger replied:
The xtension i wuld recommend is
WA Universal email from Webassist.
You can have it from: www.webassist.com
The extension is well worth for its price and above all is the excellent support.
WA Universal email from Webassist.
You can have it from: www.webassist.com
The extension is well worth for its price and above all is the excellent support.
Replied 01 Oct 2002 18:39:06
01 Oct 2002 18:39:06 Peter Kutschmann replied:
Screwdanger, according to their product info, it seems like one hell of a good recommendation. I've tried Redleader's recommendation but with not much luck yet. If WebAssist is as good as your word, you're gonna save my life. Thanks alot!!
Replied 04 Oct 2002 00:45:47
04 Oct 2002 00:45:47 fws fws replied:
Does that web assist mail extension work with php mysql ?
Replied 04 Oct 2002 19:32:20
04 Oct 2002 19:32:20 Peter Kutschmann replied:
Works only with ASP Javascript and VBscript. They got good support, and it's a very good extension, by the way.