derbystar16 Posted February 24, 2007 Share Posted February 24, 2007 Hi, I am having problems using PHP Mail. In the 'From:' part of the header, I have $name and <$email> along with some other stuff. The problem is that $name is always in the format of "Last, First" and when the email is sent, the recipient sees From: [email protected], First when I just want them to see the original "Last, First" Now I know it's the comma screwing it up but I don't want to get rid of that format. Any ideas? Link to comment https://forums.phpfreaks.com/topic/39913-php-mail-and-commas/ Share on other sites More sharing options...
superuser2 Posted February 24, 2007 Share Posted February 24, 2007 It's not possible, I believe, to put a comma in an email address. You can use a dot or a dash, but not a comma. Just a rule of the system. Try it with a dash or underscore or dot (.). Link to comment https://forums.phpfreaks.com/topic/39913-php-mail-and-commas/#findComment-192932 Share on other sites More sharing options...
derbystar16 Posted February 24, 2007 Author Share Posted February 24, 2007 But maybe I'm not understanding the function correctly but that's just the name part, not the email address part. Link to comment https://forums.phpfreaks.com/topic/39913-php-mail-and-commas/#findComment-192942 Share on other sites More sharing options...
superuser2 Posted February 24, 2007 Share Posted February 24, 2007 The name is going in the 'from' part, and that's why it can't have a comma. Link to comment https://forums.phpfreaks.com/topic/39913-php-mail-and-commas/#findComment-192944 Share on other sites More sharing options...
derbystar16 Posted February 24, 2007 Author Share Posted February 24, 2007 bummer Link to comment https://forums.phpfreaks.com/topic/39913-php-mail-and-commas/#findComment-192976 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.