Ninjakreborn Posted February 27, 2007 Share Posted February 27, 2007 I have had this work before, but I don't use it much $headers = "From: donot-reply@localhost"; // send mail to admins mail($to, $subject, $message, $headers); That is not working ot send the header as shown. is there something I am doing wrong.? Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/ Share on other sites More sharing options...
Ninjakreborn Posted February 27, 2007 Author Share Posted February 27, 2007 Just to retell, I went ahead and tried iniset, I tried putting it in the ini file. (The ini file is read because it affects other settings. But no matter what I seem to do, it's not changing to the from address I am wanting it to send from. Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/#findComment-195603 Share on other sites More sharing options...
Ninjakreborn Posted February 28, 2007 Author Share Posted February 28, 2007 Still having a problem Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/#findComment-196039 Share on other sites More sharing options...
Ninjakreborn Posted February 28, 2007 Author Share Posted February 28, 2007 Just to give you more info, I have done everything I can to change the from address. It's something like [email protected] Something like that, it's really long, and annoying, and untrustworthy looking. I was able to change the reply-to email address, but for some reason it's not changing. I tried 1. Changing it in the ini file 2. Changing it with ini set 3. Setting it manually but nothing is seeming to work to get the header to change, thanks for any advice that is offered, I was just putting the above clarification. Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/#findComment-196043 Share on other sites More sharing options...
TRI0N Posted February 28, 2007 Share Posted February 28, 2007 I've never played with a email that long with so many . in the end of it. That may be the whole reason why its not working but I don't see anything that says limit. But perhaps that just too long and chunky. Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/#findComment-196064 Share on other sites More sharing options...
Ninjakreborn Posted February 28, 2007 Author Share Posted February 28, 2007 I have everything working. I have the reply to working, it's sending html emails, and everything is fully functional. The only one problem is it's ignoring my commands on setting the damn from header. It's not setting it at all, it's not even attempting to. W hen I send header it adjusts, and changes everything else but just ignores when I tell it to change from, I don't understand. Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/#findComment-196073 Share on other sites More sharing options...
Ninjakreborn Posted February 28, 2007 Author Share Posted February 28, 2007 problem is now solved, I called the host. Just in case if anyone ever has problem sending mail from header from header mail header mail problem mail from problem mail header problem header mail problem header problem mail problem header mail from from mail header Put those there so if people search using the forum search, they can have an easier time finding it. if someone ever has this problem again, all you have to do is create an email address. Some servers you can have it change from to anything, some hosts require you actually make an email address on the server, before it will actively change the header to something. so hopefully that will help someone else in the future. Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/#findComment-196080 Share on other sites More sharing options...
gazever Posted February 28, 2007 Share Posted February 28, 2007 On mail forms that I have created in the past it has just used used the default domain user as the sender, rather than info I have actually added. I guess it could be a configuration problem somewhere. Gaz Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/#findComment-196084 Share on other sites More sharing options...
gazever Posted February 28, 2007 Share Posted February 28, 2007 You posted as I was typing, I guess this was my problem in the past. Thanks Gaz Quote Link to comment https://forums.phpfreaks.com/topic/40427-solved-from-headers-with-email-not-working/#findComment-196085 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.