» Quick Links
You can make money on these forums
We Share profits with you
Google
Google Adsense
Google Adwords
YPN
Yahoo
MSN Search
Web Directories
Web Hosting
Web Hosting Offers
Hosting News
Suggestions
Link Building
Domain Names
PHP Forums
MySQL Forums
» More Links
OSP News
Reseller Hosting
Shared Hosting
Dedicated Servers
Google Adsense
Search Engine Marketing
Link Development
Affiliate Marketing


» Advertising
Multiple DC PR Check

Free SEO Tools


Go Back   Webmaster Forums > Website Developement / Programming > PHP Programming and Tips

PHP Programming and Tips Discuss about PHP programming and Share Tips. Ask questions about Scripting and Errors.

Reply
 
Thread Tools Display Modes
  #1  
Old 08-17-2006, 01:56 PM
SLANG SLANG is offline
OSP Starters
 
Join Date: Jun 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
SLANG is on a distinguished road
Unhappy email from header

Hi there,

I am wondering if there is any way to set FROM header so that the email address does not show...
I am doing this:

$headers = "To: $to \n";
$headers .= 'From: TEST<test@test.com>' . "\n";
$headers .= "Content-type: text/html\r\n";

if (mail($to, $subject, $msg, $headers)) {
return true;
} else {
return false;
}

however, even though when received the sender says TEST, when opened it still says TEST <test@test.com>

I just want it to say TEST only
Can it be done?
Answr.... -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Revenue Sharing Ads ( ?):
  #2  
Old 08-17-2006, 01:59 PM
jared jared is offline
OSP Starters
 
Join Date: Mar 2006
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
jared is on a distinguished road
Default

The practice of showing only the name (TEST) in the mail list but the full From header (TEST <test@test.com>) when the message is opened is just normal e-mail client behaviour. The full header is TEST<test@test.com>, because that's what you're setting it to.

To state the obvious, you could just try taking out <test@test.com> and see what happens. I don't think this will work as you're expecting, though, because if I remember rightly PHP will add the default server address if none is supplied, I think it's the sendmail_from option in php.ini), even if you give a name in the From header.

Why would you want to do this anyway? E-mail comes from an e-mail address. Given you can actually specify any fake address you like (at the risk of annoying your users), does it really matter that it has to be a plausible one? -- This message may have been cut off and the rest will only be shown to members. To become a member, click here --
Reply With Quote
Reply


Thread Tools
Display Modes

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
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Free Rider Launches Web-Based Email 4.0 outsourcingplans Web Hosting News 0 11-23-2006 02:49 AM
Grand Canyon Domains Launches Web-Based Email 4.0 outsourcingplans Web Hosting Industry 0 05-09-2006 08:19 PM
GoDaddy.com Upgrades Web-Based Email outsourcingplans Web Hosting Industry 0 04-25-2006 07:46 PM
Privacy Networks Launches Email Integrity Suite outsourcingplans Web Hosting Industry 0 02-08-2006 06:24 PM
Rockliffe Reduces Complexity of Wireless Email outsourcingplans Web Hosting News 0 12-27-2005 02:29 PM


All times are GMT. The time now is 08:16 PM.