monkeybidz Posted May 5, 2006 Share Posted May 5, 2006 I am trying to get an all text email to send some information passing some variables. Disregard the num_rows topic. I was thinking of something else. This is a partial part of the code:[code] mail ('[email protected]', 'Your subject', "This is where i want the variable to show",'From: [email protected]');[/code]The variables are [b]$invoice_num[/b] & [b]$description[/b].The varaibles are being passed from another page already. The mail script sends most of it, but i cannot get it to show within the message area of the email.Thanks in advance! Link to comment https://forums.phpfreaks.com/topic/9102-inserting-num_rows-in-email-message/ Share on other sites More sharing options...
cunoodle2 Posted May 5, 2006 Share Posted May 5, 2006 Try this...[code] mail ('[email protected]', 'Your subject',"This is where i want the variable to showThe Invoice number is: ".$invoice_num."The Description is: ".$description."",'From: [email protected]');[/code]That should do the trick for you. Link to comment https://forums.phpfreaks.com/topic/9102-inserting-num_rows-in-email-message/#findComment-33495 Share on other sites More sharing options...
monkeybidz Posted May 6, 2006 Author Share Posted May 6, 2006 Works great. Thanks! Now i just need to figure out how to make it insert new rows if more than one $invoice_num or $description. Link to comment https://forums.phpfreaks.com/topic/9102-inserting-num_rows-in-email-message/#findComment-33779 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.