|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Why does the emails in my inbox sent from my contact form have "nobody@gigenic.t55.us" and not what the user entered into the "email" feild ? i use the following code to send my mail.
Quote:
|
|
||||
|
Assuming that the script is PHP, you are missing a field. The mail function arguments are as follows:
bool mail( $to, $subject, $body, $headers) The bool that is returned is true if the e-mail was successfully passed on to the sendmail daemon. The to field is the e-mail address where the e-mail is to be sent, $subject and $body should be self-explanatory, and $headers is where you enter the various headers. Each header needs to be seperated with "\r\n". This is where you should be specifying the sender e-mail address. nobody@yourserver.tld is the default user for your web server application. This automatically gets added as the return-path, since that is the user that originated the e-mail. However, if a From: is entered in the fourth parameter, it will override the return-path and that will not be visible unless the recipient manually views the headers.
__________________
The best way to learn anything, is to question everything. |
|
||||
|
Whatever image you had posted didn't come through.
We have an email field on our form and add it to the $body. $body = $body . PHP_EOL . $email; When I get the contact email it has the details I noted above in my first reply plus the from email address. If you want to see the form check it out from the links in the signature. Send me a message, and I'll be happy to send you the code. I do some processing on the text to try to catch various nefarious hacking attempts. cd :O) |
|
||||
|
The e-mail address has to be put in the headers area, formatted as "From: a@b.c\r\n" so that it gets put into the headers. Otherwise it will simply be added to the end of the message.
__________________
The best way to learn anything, is to question everything. |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can't access PM Inbox | dharrison | WebProWorld: Guidelines/Announcements/Suggestions | 6 | 04-30-2007 05:03 PM |
| Maxed email inbox | gelcreative | IT Discussion Forum | 4 | 12-28-2005 10:33 AM |
| Runtime Error - Line 1 - Error Syntex Error | charms987 | Graphics & Design Discussion Forum | 6 | 07-29-2005 12:56 PM |
| Willing Link Partners Delivered To Your Inbox | Phil Tanny | Marketing Strategies Discussion Forum | 2 | 01-15-2005 08:52 AM |
| To Moderator: Spam email in inbox | Derald | WebProWorld: Guidelines/Announcements/Suggestions | 16 | 11-19-2003 09:52 AM |
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |