Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 23rd, 2006, 03:56 PM
Authorized User
 
Join Date: Dec 2005
Location: , , .
Posts: 16
Thanks: 0
Thanked 0 Times in 0 Posts
Default Changing the "From" header when sending email

I have been trying to find a way to change the name of the senders email when using the mail() function. I would like it to change the senders email address to read something like "Company Name Inc".

The problem is when I set the $from = "From: Company Name Inc"

I get the email with the from being: Company@ourserver.comName@ourserver....urserv er.com

is there anyway I can change this?

I have found that if I change it to CompanyNameInc@theCompany.com

it sends the email with the from being:

CompanyNameInc@theCompany.com

I would really like to have it read: "Company Name Inc" period I want to remove the @whatever.com all together.


Thanks for your help





Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing Email Code hoffmann Classic ASP Basics 7 November 3rd, 2006 09:22 AM
Need Help in sending email khalidj06 Forum and Wrox.com Feedback 6 April 14th, 2006 08:16 AM
Sending email maitias C# 2005 2 February 17th, 2006 11:24 AM
changing image/logo in report header h_haviv Crystal Reports 1 February 27th, 2005 07:59 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.