[phorm] [Phorm:] Re: Trying to send 2 emails to 2 people

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 24 Apr 2004 04:05:30 -0000

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

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

  MESSAGE:  (#3988) Re: Trying to send 2 emails to 2 people 
            <http://www.phorm.com/support/?rev=3988> 
  AUTHOR:   Chuck 
  DATE:     April 24, 2004 at 12:05 a.m. EST 

  Reply To: (#3978) Trying to send 2 emails to 2 people 
  Author:   Scott 
  Date:     April 13, 2004 at 11:35 a.m. EST 

Scott, 

I'm doing this action by placing all variables directly in the text of my 
email template. I only make two calls to the actual templates from within 
Phorm: 

$PHORM_TMPL[0] = "Template1.txt"; 
$PHORM_TMPL[1] = "Template2.txt"; 

I place all other variables directly within the actual templates. Here's an 
example of the template: 

To: {{IntendedEmailer}} 
From: My Really Big Company <cs@xxxxxxxxxxxxxx> 
Subject: Customer {{Customer}}, Order Number {{OrderNo}} Received 

This email confirms that {{Customer}}has received a paid order {{Item}}. 

Remember, according to the docs, the template must also have no blank lines at 
the top. 

Hope this helps. 

Cheers, 
Chuck 

> Hello all, 

> I am trying to send a slightly different email to two 
> different people one is a hardcoded address which 
> works fine and the other is a email address entered 
> into the form and stored as a variable. The hardcoded 
> addess works fine the other does not. Here is a clip 
> from my config.php: 

> $PHORM_FROM = ph_DECLARE; 
> $PHORM_TMPL[1] = "helpdesk_email.txt"; 
> $PHORM_TO[1] = "scott@xxxxxxxxxxxxxxxxx "; 
> // Change to helpdesk after testing 
> $PHORM_TMPL[2] = "manager_email.txt"; 
> $PHORM_TO[2] = "{{manager_email}}"; 
> $PHORM_SUBJECT = "{{requestor_FirstName}} 
> {{requestor_LastName}} has submitted a Website 
> Request"; 
> $PHORM_HEADERS = "X-Dont-Read-This: I Warned 
> You!!!\n"; 

> The seceond $PHORM_TO does not work... it doesn't seem 
> to expand the variable.... can you assist me please. 

> Scott 

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

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:] Re: Trying to send 2 emails to 2 people