irrelevantjoker Posted October 4, 2006 Share Posted October 4, 2006 hey all,i have some php code that emails my email address with information about a customer who uses my site,the emails i get are from "[email protected]"is there a way to change the email it's from? and give it a name? so when i get an email it will be from "Tom's Toys<[email protected]>", something like that? Link to comment https://forums.phpfreaks.com/topic/22934-changing-the-from-part-of-an-email/ Share on other sites More sharing options...
brendandonhue Posted October 4, 2006 Share Posted October 4, 2006 You can set the From address by changing sendmail_from in php.ini, or by setting a From: header when you call mail(). Link to comment https://forums.phpfreaks.com/topic/22934-changing-the-from-part-of-an-email/#findComment-103492 Share on other sites More sharing options...
irrelevantjoker Posted October 4, 2006 Author Share Posted October 4, 2006 kk, i used it in the mail() functionquite simple now i know how ;Dcheers very much Link to comment https://forums.phpfreaks.com/topic/22934-changing-the-from-part-of-an-email/#findComment-103495 Share on other sites More sharing options...
brendandonhue Posted October 5, 2006 Share Posted October 5, 2006 No problem :) Link to comment https://forums.phpfreaks.com/topic/22934-changing-the-from-part-of-an-email/#findComment-104548 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.