![]() |
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software. |
|
#21
|
|||
|
|||
|
Ok I got it working! Thank goodness, i appreciate the advice. 1 small problem though, I added the TemplateMissing field on mail options and tested the form, leaving a few fields blank, and on the corresponding email everything came through, but the N/A was sort of inserted in front of the name of the input field, like N/A Address where i left the street address blank. Any ideas? Thanks again for your stellar support!
|
|
#22
|
||||
|
||||
|
Hi,
That sounds like the N/A is from the previous line. Perhaps a problem with line wrapping or incorrect line termination in the template. Go up the results and see where the problem starts. You should be able to deduce exactly what's happening.
__________________
Russell Robinson (Author of Tectite FormMail and FormMailDecoder) Root Software (http://www.tectite.com/) |
|
#23
|
|||
|
|||
|
Hi,
I've just defined an html-template and everything is working fine, up to the e-mail, which shows the html-code insted of interpreting it. A part of the header code is shown: Code:
Content-Type: text/html; charset=ISO-8859-1 Return-Path: root@s033.jdn-internetdiensten.nl X-OriginalArrivalTime: 10 Jan 2006 12:09:54.0555 (UTC) FILETIME=[C437C4B0:01C615DE] <html> <body> [here is the data from the form] </body> </html> ================================== My template starts and ends with the usual: Code:
<html> <body> </body> </html> The relevant field from my form are: Code:
<input type="hidden" name="mail_options" value="HTMLTemplate=template1.htm,TemplateMissing=nvt,NoPlain" /> <input type="hidden" name="template_list_sep" value="<br />" /> My e-mail client is Outlook 2002, which handles all other html-emails just fine. What could be wrong? Why is there a line at the end of the html code? Is that what breaks the html formatting? |
|
#24
|
||||
|
||||
|
Hi,
The "==================================" at the end is a separator after which FormMail will put the environment variables. This is actually a bug - FormMail should not attempt to put the env. vars. after an HTML template. It hasn't caused a problem in the past, but it just shouldn't do it. You can prevent it from adding the env. vars. by not setting "env_report" hidden field in your form. So, try that to start - remove "env_report" from your form. If you want to see some environment variables (such as the user's IP address), check out the HOW TO guide on deriving fields. You derive a field from the env. var. and then show that field in your template. The most likely cause of the problem you're having is the settings called BODY_LF and HEAD_CRLF. Read the info about them and try the various combinations. You'll also find other threads about this on the forum. This is almost always a server problem (especially if you use a Windows server ).If you still can't solve it, reconfigure FormMail and your form to send a copy to "tester AT tectite DOT com" and submit your form. I can then look at the actual email structure.
__________________
Russell Robinson (Author of Tectite FormMail and FormMailDecoder) Root Software (http://www.tectite.com/) |
|
#25
|
|||
|
|||
|
Hi Russel,
I'm not using a Windows server actually. I think my host uses FreeBSD Thanks for your answer. I'm going to try this as soon as possible. |
|
#26
|
|||
|
|||
|
Is it possible to have multiple templates (either plain text text or HTML) so that for example one can send one formats to the main recipient and a different format to cc/bcc?
|
|
#27
|
||||
|
||||
|
Hi,
It's a good idea so we'll add this to the TO DO list for FormMail. You might be able to do this using $TEMPLATEURL and creating dynamic templates in PHP or similar that configure themselves depending on the query string used to open them. I haven't tried this, but I think it would be possible. It depends how keen you are.
__________________
Russell Robinson (Author of Tectite FormMail and FormMailDecoder) Root Software (http://www.tectite.com/) |
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Sample HTML Form Using FormMail | russellr | FormMail | 1 | 21-Mar-2007 07:49 AM |
| send an email in HTML | michecosta | FormMail Subscription Support | 3 | 25-May-2004 09:18 PM |
| Submitted form output onto HTML page? | LKimber | FormMail Subscription Support | 2 | 13-Apr-2004 11:39 AM |
| not seeing form data | brownie | FormMail Subscription Support | 6 | 19-Jan-2004 02:37 AM |
| Help trying to set up a form to email and send info to file | rridsdale | FormMail Subscription Support | 1 | 14-Jan-2004 03:38 AM |