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 ('recepient@yoursite.com', 'Your subject', "This is where i want the variable to show",'From: webmaster@mysite.com');[/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! Quote 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 ('recepient@yoursite.com', 'Your subject',"This is where i want the variable to showThe Invoice number is: ".$invoice_num."The Description is: ".$description."",'From: webmaster@mysite.com');[/code]That should do the trick for you. Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.