PHP mail only showing first word of from name

I have this for:

DEFINE ('EMAIL_HEADER', 'From: Our World noreply@xxxxx.com' . "\r\n" . 'Reply-To: info@xxxxx.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion());

Open in new window


For this:

$sent = mail($current_email, 'xxxxx xxxxx Account Activated', $body, EMAIL_HEADER);

Open in new window


But the from is only show from Our, if I put it in quotes it shows as  "Our World".

Can you see what I'm doing wrong?  I just want it to be from Our World
christamccAsked:
Who is Participating?
 
grahamnonweilerConnect With a Mentor Commented:
The from field should look like:

"From:Our World<noreply@xxxxx.com>"
0
 
christamccAuthor Commented:
ahh, the angle brackets! how could i forget the angel brackets!?  thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.