Log in

View Full Version : HTML emails


gree_c
Jul 26, 2003, 10:42 AM
Hello, can anyone help me with some HTML (CGI-SCRIPTS) programming.

I am trying to send an automatic email to everyone who submits a feedback form to me on my site. Problem is I want to send Japanese characters, which can only be done via an HTML email. At the moment my comand is:

<form action="http://dnac.co.uk/cgi-bin/cgiemail/formmail2.txt" METHOD=POST>

This sends a text mail fine... what do I need to do to create an HTML email that will use the information in the feedback form (addresses, names, relevant info etc.)?

Also it'd be beneficial to me if I could send one email to them and a different one to me... how is this possible? Do you have an HTML code that could send them one mail and me a different mail at the click of the "submit button"?

Many thanks

Asher

theguyfromoz
Nov 20, 2003, 02:41 AM
Have you considered using an applet like JMAIL that can construct email messages using command line instructions - for example:

'JMail.Body = JMail.Body & "A message has been sent to you by " & Session("UserID") & ","
'JMail.Body = JMail.Body & "in response to your advert on XXXX. "
'JMail.Body = JMail.Body & "To read this message, go to the XXXX Home Page at " & VbCrLf & VbCrLf
'JMail.Body = JMail.Body & "http://XXXX .com. Au and click My Mailbox." & VbCrLf & VbCrLf
'JMail.Body = JMail.Body & VbCrLf & VbCrLf
'JMail.Body = JMail.Body & "This message automatically generated by E-Members Membership System" & VbCrLf & VbCrLf

This is some code from an introductions web site I built a couple of years ago using ASP and JMAIL - it can send emails containing HTML to multiple addressees, as well as putting the relevant form data straight into an online database. It can also receive email replies and process them, which is pretty cute.

Might be what you are looking for.

Tony