Free Web Hosting Forum
(#1 (permalink))
Old
Member
Ranga is on a distinguished road
 
Posts: 36
Join Date: Jul 2010
Location: In a house
Default Email Over-ride - 08-11-2010, 03:23 PM

hiya, i have been playing around with a signup code for awhile now, and it finally all works except for the "who its from section.
in my code it comes up as:
Code:
$headers .= "From: ZombieVirus <signup@signup.webuda.com>rn";
But when the email is recived all it comes up with something entirely different

Code:
From:  Nobody <nobody@srv42.000webhost.com>
can someone please explain why it is doing this.


Thanks
Ranga
Reply With Quote
Sponsored Links
(#2 (permalink))
Old
d3iti's Avatar
Super Moderator
d3iti is on a distinguished road
 
Posts: 4,606
Join Date: Jul 2009
Location: Spain
Default 08-11-2010, 04:17 PM

Hi Ranga,

I think that you should not add rn at the end of the line:
PHP Code:
$headers .= "From: ZombieVirus <signup@signup.webuda.com>rn"
I think the line should be:
PHP Code:
$headers .= "From: ZombieVirus <signup@signup.webuda.com>"
You can try delete rn. In any case, seeing the php manual for the email function, you should use to complete the header characters \r\n


Si este mensaje te ha servido de ayuda no dudes en pulsar sobre el botón karma

Last edited by d3iti; 08-11-2010 at 04:23 PM. Reason: add link manual php
Reply With Quote
(#3 (permalink))
Old
Member
Ranga is on a distinguished road
 
Posts: 36
Join Date: Jul 2010
Location: In a house
Default 08-12-2010, 02:50 PM

Thank you very much for your help, it has solved my problems completely.
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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.5.2
vBulletin Skin developed by: vBStyles.com