Tectite Forums  

Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.


Go Back   Tectite Forums > FormMail Support > HOWTO Guides and Tips

Vote for FormMail at
ScriptSearch.com

Vote for FormMail
at HotScripts.com

Vote for FormMail at
FatScripts!

Closed Thread
 
Thread Tools Display Modes
  #21  
Old 05-Dec-2005, 09:31 PM
bdc1285 bdc1285 is offline
Active Member
 
Join Date: Nov 2005
Posts: 9
bdc1285 is on a distinguished road
Default Re: Sending form results in an HTML email

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  
Old 05-Dec-2005, 10:37 PM
russellr's Avatar
russellr russellr is offline
Tectite and FormMail Author
 
Join Date: Dec 2003
Posts: 3,539
russellr is on a distinguished road
Default Re: Sending form results in an HTML email

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  
Old 10-Jan-2006, 01:31 PM
Darnolds Darnolds is offline
Active Member
 
Join Date: Jan 2006
Posts: 3
Darnolds is on a distinguished road
Question Re: Sending form results in an HTML email

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>
and is called "template1.htm"

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 />" />
I have two questions:

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  
Old 10-Jan-2006, 10:02 PM
russellr's Avatar
russellr russellr is offline
Tectite and FormMail Author
 
Join Date: Dec 2003
Posts: 3,539
russellr is on a distinguished road
Default Re: Sending form results in an HTML email

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  
Old 11-Jan-2006, 12:24 PM
Darnolds Darnolds is offline
Active Member
 
Join Date: Jan 2006
Posts: 3
Darnolds is on a distinguished road
Default Re: Sending form results in an HTML email

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  
Old 12-Jan-2006, 05:25 PM
Tower Theatre Tower Theatre is offline
Active Member
 
Join Date: Jan 2006
Posts: 7
Tower Theatre is on a distinguished road
Default Re: Sending form results in an HTML email

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  
Old 12-Jan-2006, 09:31 PM
russellr's Avatar
russellr russellr is offline
Tectite and FormMail Author
 
Join Date: Dec 2003
Posts: 3,539
russellr is on a distinguished road
Default Re: Sending form results in an HTML email

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/)
Closed Thread

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

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


All times are GMT. The time now is 08:44 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright © 2004-present Open Concepts (Vic) Pty Ltd.