Jump to content

Archived

This topic is now archived and is closed to further replies.

monkeybidz

Inserting num_rows in email message

Recommended Posts

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!

Share this post


Link to post
Share on other sites
Try this...

[code] mail ('recepient@yoursite.com', 'Your subject',
"This is where i want the variable to show

The Invoice number is: ".$invoice_num."

The Description is: ".$description."

",

'From: webmaster@mysite.com');
[/code]

That should do the trick for you.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.