Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Mail Function, to get My name under From column of inbox
Old 07-13-2008, 01:38 AM Mail Function, to get My name under From column of inbox
Extreme Talker

Posts: 172
Name: James
Location: Australia
Trades: 0
I need help with the Mail function, and how to get it to show sender in my email inbox.


Where I mean, when one sees ones inbox, or junk box etc, under the column titled 'from'.

I want that to show my name, not my email address. Just like one gets a message from Ebay, it just says 'Ebay' or 'paypal' etc, it will show the email address by default.

How do I get the Mail function to work like that for me.
TRANZIT JIM is offline
Reply With Quote
View Public Profile Visit TRANZIT JIM's homepage!
 
 
Register now for full access!
Old 07-13-2008, 03:27 AM Re: Mail Function, to get My name under From column of inbox
Average Talker

Posts: 22
Trades: 0
You can use header function for that.
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE
priyakochin is offline
Reply With Quote
View Public Profile
 
Old 07-13-2008, 01:35 PM Re: Mail Function, to get My name under From column of inbox
Skilled Talker

Posts: 76
Trades: 0
$from = "someonelse@example.com";
$headers = "From: $from";

Replace the value in the header.
darshdude is offline
Reply With Quote
View Public Profile
 
Old 07-13-2008, 10:48 PM Re: Mail Function, to get My name under From column of inbox
Extreme Talker

Posts: 172
Name: James
Location: Australia
Trades: 0
Here is the Script I used

$mto='myname@hotmail.com';
$c="From: my name@mywebsite.com\r\nSender:My name is this";

mail($mto,$mh,$mb,$c);

my problem is
When I test this by sending it to my hotmail account, under the From column, I want it to show 'My name'

My website is being hosted by another company, could there be some issue in the setup of which prevents my hosting server in sending certain things.
TRANZIT JIM is offline
Reply With Quote
View Public Profile Visit TRANZIT JIM's homepage!
 
Old 07-13-2008, 10:56 PM Re: Mail Function, to get My name under From column of inbox
Extreme Talker

Posts: 172
Name: James
Location: Australia
Trades: 0
This is what happens

When I had - From: autovote@internetdatabase.com.au Sender: IDB Lobby vote

Under the from column I get - autovote@internetdatabase.com.au

-------------------
When I had - Sender: IDB Lobby vote\r\nFrom: autovote@internetdatabase.com.au\r\n

Under the form column I get - autovote@internetdatabase.com.au
TRANZIT JIM is offline
Reply With Quote
View Public Profile Visit TRANZIT JIM's homepage!
 
Reply     « Reply to Mail Function, to get My name under From column of inbox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.25560 seconds with 12 queries