formatting resulting e-mail from Formmail

formatting resulting e-mail from Formmail

Posted by: kentfieldk
Posted on: 2008-02-04 09:44:00

I have created a lunch order form using Dreamhost's Formmail and it is working properly (I still need to upload the redirect page, but the form can be found here: http://www.ctfirst.org/ftc_events/2007_FTC_lunch.html).

However, the resulting e-mail I receive is not formatted well. I would like the resulting e-mail to display the form information better - Perhaps with a header between orders like "Order 1:" on a separate line followed by the choices for that order, "Order 2:" followed by those choices, etc.

This is a clunky form, but will only be used for a week or two.

Is there a way to specify in the form how my resulting e-mail will appear?

Re: formatting resulting e-mail from Formmail

Posted by: patricktan
Posted on: 2008-02-04 17:13:00

The easiest way will be using HTML codes to format your message body.

Re: formatting resulting e-mail from Formmail

Posted by: kentfieldk
Posted on: 2008-02-04 17:24:00

I have done that in the past with a ColdFusion form, but am not sure how it's done using formmail. Can someone plesae tell me what to put in the form, and where it is placed on the page?

Re: formatting resulting e-mail from Formmail

Posted by: patricktan
Posted on: 2008-02-04 17:50:00

Well, I understand your problem now.

I'm not sure how to do that using formmail.

Usually I use PHP mail() function and format the email body by myself.Edited by patricktan on 02/04/08 05:55 PM (server time).

Re: formatting resulting e-mail from Formmail

Posted by: Atropos7
Posted on: 2008-02-04 18:31:00

In reply to:

I have done that in the past with a ColdFusion form, but am not sure how it's done using formmail. Can someone plesae tell me what to put in the form, and where it is placed on the page?


You can't with the DreamHost formmail - it is not designed to work that way. It is a DreamHost-specific version of the script at The nms Project. And if you examine the source code, you'd find the message output is hardcoded a certain way. You can install and modify your own version if you are good with Perl though.


cool openvein.org -//-

Tags: formmaildreamhoste mailchoiceslunchformmaildreamhoste mailchoiceslunch