Jump to content

Inserting num_rows in email message


monkeybidz

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

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.