[phorm] [Phorm:] Re: Multiple Email Question

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 26 Apr 2004 14:22:58 -0000

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

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

  MESSAGE:  (#3991) Re: Multiple Email Question 
            <http://www.phorm.com/support/?rev=3991> 
  AUTHOR:   Scott 
  DATE:     April 26, 2004 at 10:22 a.m. EST 

  Reply To: (#3990) Re: Multiple Email Question 
  Author:   Chuck 
  Date:     April 24, 2004 at 12:51 p.m. EST 

Chuck, 

Thanks for your response, but it doesn't seem to be working for me... Let me 
show you what I have done: 

Config.php 

<?php 
# In this file, text coming after a # character or // characters is ignored. 

# PHORM_FROM, PHORM_FILE01 and PHORM_FILE02 are coming from form fields, so 
# they need to be declared here. Only PHORM_ variables being passed from a 
# form field need to be declared this way. 
# $PHORM_VARREG = true; 

$PHORM_TMPL[0] = "manager_email.txt"; 
$PHORM_TMPL[1] = "helpdesk_email.txt"; 

# $PHORM_HEADERS = "X-Dont-Read-This: I Warned You!!!\n"; 
# $PHORM_SUBJECT = "{{requestor_FirstName}} {{requestor_LastName}} has 
submitted a Website Request"; 
# $PHORM_RESPOND = "responder.txt"; 
# $PHORM_RESFROM = "VitaminShoppe Helpdesk <helpdesk@xxxxxxxxxxxxxxxxx>"; 
# $PHORM_RESUBJ = "Thank you for your Web Request"; 
# $PHORM_RESRPLY = "scott@xxxxxxxxxxxxxxxxx"; // Change to helpdesk after 
testing 

?> 

Template 0: 

To:{{manager_email}} 
From:helpdesk@xxxxxxxxxxxxxxxxx 
Subject:{{requestor_FirstName}} {{requestor_LastName}} has submitted a Website 
request. 

{{manager_FirstName}} {{manager_LastName}}: 

The following user on your team has requested special website access: 

User: {{requestor_FirstName}} {{requestor_LastName}} 
Department: {{requestor_dept}} 
Extension: {{requestor_ext}} 

The website {{requestor_FirstName}} is requesting access to: 

{{website}} 

Business reason for the request: 

{{reason}} 

An email message has also been sent to the helpdesk and they should open a 
ticket and contact you for approval. 

Please follow up with the helpdesk regarding this request if you have any 
questions. 

Thank you, 

Web Request System 

Template 1: 

To:poseidon2water@xxxxxxxxx 
From:{{requestor_email}} 
Subject:{{requestor_FirstName}} {{requestor_LastName}} has submitted a Website 
Request. 

Helpdesk: 

The following user has requested special website access: 

User: {{requestor_FirstName}} {{requestor_LastName}} 
Department: {{requestor_dept}} 
Extension: {{requestor_ext}} 

The website {{requestor_FirstName}} is requesting access to: 

{{website}} 

Business reason for the request: 

{{reason}} 

An email message has also been sent to {{manager_FirstName}} 
{{manager_LastName}} requesting approval. 

Please open a helpdesk ticket and follow up with {{manager_FirstName}} 
{{manager_LastName}} to confirm approval. 

Thank you, 

Web Request System 

What seems to be happening is that the only person getting the email is the 
person defined in the $PHORM_ALERTTO variable. Any additional assistance you 
could provide would be great. 

Thank you. 

> Scott, 
> I posted this yesterday under your original message. 
> Here's another copy. BTW, because Phorm is so powerful 
> and comprehensive, I've printed out all the docs and 
> keep them stapled together on my desktop. They're 
> dog-eared and worn after about a year, but careful 
> reading has answered most of my questions. 

> I'm doing this action (sending multiple emails) 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 

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

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: