I'm new to php and have 90% of what I what working functioning.
What I've done is created a web page that is being emailed to different people based on the email address entered on the calling form.
On the posting form I'm collecting the sender name, recipient, recipient email address and a brief message.
On the called form, I'm putting it together into an email message as followes
$msg = '
/* Contents of webpage go here */
/* mailheader info goes here and sends out $msg to $recipent_name.
If the information between $msg ' through '; is just text and html, it goes through fine with all the normal formatting. (To save time, I create the page seperately, the copy the created page's html into the area between the ' ' . )
What I can't seem to do is have a location in the html (that gets emailed) have the value of $recepient_name and $message appear on the emailed web page. When I try it, all I get is the text '$recepient_name and $message. I've tried changing the $msg = ' to $msg = ", I've tried both type's of quotes around the variables but haven't been able to get the results I'm looking for.
Can someone point me in the right direction on this?
- Bill -