PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development
The ASP Free website provides in-depth information on the latest developer tools available from Microsoft. Our cadre of writers, highly experienced industry experts, reveals the best ways to use established technologies as well as new and emerging technologies. Our coverage of Microsoft's development and administration technologies is among the most respected in the IT industry today.

ASP Free and Iron Speed Designer are giving away $5,500+ in FREE licenses. Iron Speed's RAD CASE toolset can save up to 80% of your coding time. One free license per week, one perpetual license per month!
Download and Activate to enter!

Intel® Graphics Performance Analyzers is a powerful tool suite for analyzing and optimizing your games, media, and graphics-intensive applications. Used by some of the best developers on the planet, Intel GPA lets you maximize your app’s performance.


Tutorials
| Forums

Download to Enter
| Contest Rules

DOWNLOAD INTEL® GPA FOR FREE

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 Dev Shed Forums Sponsor:
  #1  
Old August 7th, 2005, 02:07 PM
mwild8's Avatar
mwild8 mwild8 is offline
Spontaneously Present
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Posts: 1,149 mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 16 m 26 sec
Reputation Power: 115
reply to mail() help

to keep this short and straight to the point when i send email via this code:

PHP Code:
 $to "email@gmail.com";
$email $_POST['required-email'];
$name $_POST['required-name'];
$company $_POST['company'];
$street $_POST['street'];
$state $_POST['state'];
$city $_POST['city'];
$zip $_POST['zip'];
$phone $_POST['phone'];
$message $_POST['comments'];

$subject "Machine Tooling Inquiry"
$headers "From: $name\r\n Reply-To: $email\r\n";
$message wordwrap($message70);
$citystatezip $city " " $state " " $zip;

$info "\n$name \n$company \n$street \n$citystatezip \n$phone \n";
$body $info.$message;
// Send
mail($to$subject$body$headers);

//echoed to make sure everything got posted and sent
echo $email;
echo 
$name;
echo 
$company;
echo 
$street;
echo 
$state;
echo 
$city;
echo 
$zip;
echo 
$phone;
echo 
$message


the reply address is the varaiable $name along with @ and then my hosting sites address... so $name@myhost.com

ive tried to specify the reply address by writing this header:

PHP Code:
 $headers "From: $name\r\n Reply-To: $email\r\n"


but its not coming up with that $email that i want.. how can i overwrite the reply email its sending?

Reply With Quote
  #2  
Old August 7th, 2005, 02:25 PM
mwild8's Avatar
mwild8 mwild8 is offline
Spontaneously Present
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Posts: 1,149 mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 16 m 26 sec
Reputation Power: 115
well it is working as far as the header goes.. its just when i hit reply the address to reply to is my hosting server.. cause the php file is on an FTP server and the address to root@thehost.com

how can i make it so when the user hits reply it goes to the $email?

thanks

Reply With Quote
  #3  
Old August 7th, 2005, 02:28 PM
Keiichi Keiichi is offline
aHVoPw==
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jan 2001
Posts: 1,058 Keiichi User rank is Lance Corporal (50 - 100 Reputation Level)Keiichi User rank is Lance Corporal (50 - 100 Reputation Level)Keiichi User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 15 h 42 m 24 sec
Reputation Power: 13
Try it like the example on the php manual:
PHP Code:
 $headers 'From: Birthday Reminder <birthday@example.com>' "\r\n"

Reply With Quote
  #4  
Old August 7th, 2005, 02:46 PM
mwild8's Avatar
mwild8 mwild8 is offline
Spontaneously Present
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Posts: 1,149 mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 16 m 26 sec
Reputation Power: 115
Quote:
Originally Posted by Keiichi
Try it like the example on the php manual:
PHP Code:
 $headers 'From: Birthday Reminder <birthday@example.com>' "\r\n"


is that not the same thing i have?

Reply With Quote
  #5  
Old August 7th, 2005, 03:42 PM
mwild8's Avatar
mwild8 mwild8 is offline
Spontaneously Present
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Posts: 1,149 mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 16 m 26 sec
Reputation Power: 115
this is exactly what it shows in the reply to box when i hit reply using the above code:

PHP Code:
 $name <$email@lackey.smarterlinux.com

Reply With Quote
  #6  
Old August 7th, 2005, 03:57 PM
mwild8's Avatar
mwild8 mwild8 is offline
Spontaneously Present
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2005
Posts: 1,149 mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level)mwild8 User rank is First Lieutenant (10000 - 20000 Reputation Level) 
Time spent in forums: 1 Week 3 Days 15 h 16 m 26 sec
Reputation Power: 115
figured it out:

PHP Code:
 $headers 'From: ' $name " <$email> " "\r\n"

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > reply to mail() help


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 | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.

© 2003-2012 by Developer Shed. All rights reserved. DS Cluster 7 - Follow our Sitemap