|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Emailing Variables
Hey Guys/Girls,
Does anyone have any code that they use to email values of variables to a certain email address? Example : The user has entered information to a database. On a confirm page, the user confirms existing data that was saved and clicks on SEND EMAIL. I don't wish to use forms to get the data from, I want to run an SQL query and email the results. Thanks In Advance |
|
#2
|
|||
|
|||
|
RE: Emailing Variables
$message = "Add any variables you want to the message. Here I will add then one per a line.n";
$message .= "{$row[1]}n"; $message .= "{$row[2]}n"; $message .= "{$row[3]}n"; $message .= "{$row[4]}n"; $message .= "I can also add then inline like this {$row[1]}n"; mail("nobody@example.com", "the subject", $message, "From: me@$SERVER_NAMErn"; |
![]() |
| Viewing: Codewalkers Forums > PHP Related > PHP Coding > Emailing Variables |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|