that should read email_reply.htm
aussieincanada
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
Hi Russell,
Thanks again for the script, I have had it working extremely well with replies in text.
My efforts to get a reply in HTML have been in vain, I have been trying for hours, checked and rechecked your How To with no success.
This is the reply I receive in text with the input data.
Content-Type: text/plain; charset=ISO-8859-1
Here is my script:
<p> <form method="post" action="http://www.sequoiasprings.com/formmail.php" name="formmail">
<input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
<input type="hidden" name="recipients" value="auscan#island.net">
<input type="hidden" name="required" value="email: auscan#island.net">
<input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm">
<input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,NoPlain">
<input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,KeepLines">
<input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,TemplateMissing=N/A">
<input type="hidden" name="subject" value="Catering Request Information">
and the address of the email reply....
http://www.sequoiaspringsDOTcom/email_reply.htm
the formmail php and reply htm are in the same folder (fmtemplates)
Can you please assist me.
Thanks in advance
aussieincanada![]()
that should read email_reply.htm
aussieincanada
Your template "email_reply.htm" looks fine. So, it must be something else that's causing the problem.
Would you like to email me your form and your configured formmail.php. Send to custsupp AT tectite DOT com.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Thanks for sending your files.
There are two problems in your configured FormMail:In your form you have one problem. You have "mail_options" specified multiple times.
- Your DEF_ALERT value is not a valid email address - this means you won't receive error messages to help you resolve problems. Put your email address in there to help you debug your forms and FormMail.
- You provided a URL in your $TEMPLATEDIR setting instead of a directory. You have:
and what you want is something like this:PHP Code:$TEMPLATEDIR = "http://www.sequoiasprings.com/fmtemplates/email_reply.htm";
You can use the following if you're not sure of the correct path:PHP Code:$TEMPLATEDIR = "path-to-document-root/fmtemplates";
Note that it should not have the name of the template itself - just the path to the directory. The template name is specified in the form.PHP Code:$TEMPLATEDIR = "$REAL_DOCUMENT_ROOT/fmtemplates";
It looks like what you want is this:Code:<input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm"> <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,NoPlain"> <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,KeepLines"> <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,TemplateMissing=N/A">
I've tried the above changes locally, and if you do them, you'll get a nicely formatted HTML email sent to you.Code:<input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,NoPlain,KeepLines,TemplateMissing=N/A">
Please let me know how you go with the above.
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
Russell you have here a very professional script and your support has been excellent.
I have it up and running and looking good.
Sincere thanks![]()
aussieincanada
That's great news.
Thanks for letting us know.
PS Please remember to put a link to our site to help us continue to provide free software and free support. Thanks!
Russell Robinson - Author of Tectite FormMail and FormMailDecoder
http://www.tectite.com/
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks