PhpDig.net

Go Back   PhpDig.net > General Forums > Coding & Tutorials

Reply
 
Thread Tools
Old 02-10-2004, 11:37 AM   #1
hollycrj
Green Mole
 
Join Date: Feb 2004
Posts: 3
"from" line in email

i'm not a technical person so i apologize if what i'm about to ask is somewhat confusing.

on our local intranet we have a person that use PHP to create forms and other items for us. we have an anniversary page that looks at a database for a hire date and sends the employee an email stating "happy anniversary". the problem is the email is coming from webmaster. this of couse is set up on the server end, my question is...is there a way to make the email appear it is coming from Human Resources without changing it on the server end? can we create a line in the programming that will reflect this.

any feedback you have is greatly appreciated.

thanks
hollycrj is offline   Reply With Quote
Old 02-10-2004, 06:05 PM   #2
vinyl-junkie
Purple Mole
 
Join Date: Jan 2004
Posts: 694
I have a form on my website which sends out e-mail like so:
Quote:
mail("$SendToEmail", $yoursubject, $emailtext, "From: $email");
$SendToEmail is the recipient's e-mail address.
$yoursubject is the e-mail subject line.
$emailtext is the body of the e-mail.
$email is the sender, so you could set that to the Human Resources e-mail address if you wanted to.

You can find out more about how the PHP mail function works here.

Hope this helps.
vinyl-junkie is offline   Reply With Quote
Old 06-29-2004, 01:34 PM   #3
cybercox
Green Mole
 
Join Date: Jan 2004
Location: Italy
Posts: 11
hi all,
actually when you send an email (like in the example of vinyl junkie)
the last argument is a string containing additional headers.
This let you control a lot of funny things...
such as mime, extra headers, reply to fields,
priority....

Hope helps
Simone Capra
http://www.erweb.it
cybercox is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
search.php suddenly stops parsing during "extract vars" jackmoring Troubleshooting 1 08-25-2006 12:27 PM
shows blank page if "Search All" and "exact phrase", timeout? alokjain9 Troubleshooting 2 03-07-2006 08:08 AM
"search depth" and "links per" features laurentxav How-to Forum 1 01-12-2005 08:27 PM
Command line spider ignoring "filelist.txt" lighthouse Troubleshooting 9 08-18-2004 08:35 AM


All times are GMT -8. The time now is 09:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.