[UPHPU] mailing options???

Caleb Call caleb at macjunk.org
Tue Mar 27 12:14:32 MDT 2007


Well, I've been asked to tweak a form on our company intranet site so  
that when it submits the form it will submit it to the email it has  
been and to the original sender (kind of as a second confirmation  
that the message was sent).  The code pertaining to this is as follows:

		// lets send email to IT
                 $from_email = $_SESSION['strUserEmail_g']; // get  
email from intranet session
                 $to_email = "mantisit at domain.com";
                 $subject_email = "** $summary **";
                 $body_email = "bug id($bug_id):\nhttps:// 
mantis.domain.com/view.php?id=$bug_id\n\n" . $description;

I think I can just add ['strUserEmail_g'] to the $to_email line.  Is  
this correct?  Would my new line be as follows:

		$to_email = "mantisit at domain.com", ['strUserEmail_g'];

Thanks (yep, still a php newb)



More information about the UPHPU mailing list