PhpDig.net

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

Reply
 
Thread Tools
Old 02-10-2004, 10: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, 05: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, 12: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

Thread Tools

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 11:27 AM
shows blank page if "Search All" and "exact phrase", timeout? alokjain9 Troubleshooting 2 03-07-2006 07:08 AM
"search depth" and "links per" features laurentxav How-to Forum 1 01-12-2005 07:27 PM
Command line spider ignoring "filelist.txt" lighthouse Troubleshooting 9 08-18-2004 07:35 AM


All times are GMT -8. The time now is 02:16 AM.


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