Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-04-2012, 11:56 PM   PM User | #1
aaron4osu
New Coder

 
Join Date: Oct 2010
Posts: 66
Thanks: 29
Thanked 0 Times in 0 Posts
aaron4osu is an unknown quantity at this point
Help with concatenating php mail function message variable

I'm having problems concatinating two strings together to use as a message variable in a php mail function.

In my script I have several different mail function. Each one will use the same $message variable, but will have a different sentence added to the beginning.

If I use just the $message variable or the prefix to it ($requester_message) it works fine. But when I combine the two it doesn't work.

PHP Code:
/* ========================================================
===============  Conformation Email to Requester  ======================
===========================================================*/
   
    
$requester_message 'We have received your Request and will be in contact with you shortly.'.$message;
    
$requester_message1 wordwrap($requester_message70);

    
mail($requester_email$subject$requester_message1$headers); 
I have also tried breaking it down to two lines

PHP Code:
/* ========================================================
===============  Conformation Email to Requester  ======================
===========================================================*/
   
    
$requester_message 'We have received your Request and will be in contact with you shortly.';
    
$requester_message $requester_message $message;
    
$requester_message wordwrap($requester_message70);

    
mail($requester_email$subject$requester_message1$headers); 
Any ideas?
aaron4osu is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:20 PM.


Advertisement
Log in to turn off these ads.