[phorm] [Phorm:] Allowing Reply-To headers in alternate templates

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 9 May 2003 17:47:07 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#2676) Allowing Reply-To headers in alternate templates 
            <http://www.phorm.com/support/?rev=2676> 
  AUTHOR:   Doug Stein 
  DATE:     May 9, 2003 at 1:47 p.m. EST 

Just an idea for others. I needed to create a 2nd email template for a phorm 
that supported the Reply-To header, but phorm 3.0.4 doesn't currently allow 
that. The only headers currently allowed in PHORM_TMPL[x] files (where x>0) 
are: 

To: 

From: 

Subject: 

X-<anything>: 

To be able to use Reply To (with variable substitution) it was necessary to 
add these lines: 

elseif (eregi("^From: ", $ph_tline)) 

$ph_Headers.= $ph_tline."\r\n"; 

// Modification starts 

elseif (eregi("^Reply-To: ", $ph_tline)) 

$ph_Headers.= $ph_tline."\r\n"; 
// End modification 

else 

$ph_Alerts['102'] = "### - Invalid email header '$ph_tline' in $lPHORM_TMPL."; 

There's only one place in the file with the text "$ph_Alerts['102'], so you 
can search for that to find the appropriate place in your file. In mine, the 
new lines inserted immediately after line 1975. 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts:

  • » [phorm] [Phorm:] Allowing Reply-To headers in alternate templates