PHP Coding
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Coding

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
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  
Old August 29th, 2002, 06:38 AM
Emperor_Jazzy Emperor_Jazzy is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Location: Melbourne, Vic, Aus
Posts: 7 Emperor_Jazzy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old August 29th, 2002, 02:11 PM
Matt Matt is offline
Moderator
Codewalkers Specialist (4000 - 4499 posts)
 
Join Date: Apr 2007
Location: Florida
Posts: 4,158 Matt User rank is Private First Class (20 - 50 Reputation Level)Matt User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 h 10 m 20 sec
Reputation Power: 6
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";

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Coding > Emailing Variables


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway