Jump to content

PHP Mail Display Name


oduth

Recommended Posts

Hi,

I have a problem with Mail Display name. I would really appreciate If you could help me with this.

 

A part of my PHP file:

...

...

$headers = 'From: IT Service Desk <[email protected]>' . "\r\n";

$headers .= 'Content-Type: text/html; charset=UTF-8';

...

...

 

Here is the (echo $headers) result: (You can see there is no <e-mail_address> part of headers)

From: IT Service Desk Content-Type: text/html; charset=UTF-8

 

So, my mail could not be sent.

 

I tried this as well;

...

...

$headers = 'From: IT Service Desk <[email protected]>' . "\r\n";

$headers .= 'Content-Type: text/html; charset=UTF-8';

...

...

 

The output:

> From: IT Service Desk <[email protected]> Content-Type: text/html; charset=UTF-8

 

Although the output looks correct, my mail could not be sent once again.

 

What could the possible problems be?  :shrug:

 

Thanks & Regards.

Link to comment
https://forums.phpfreaks.com/topic/258406-php-mail-display-name/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.