Reputation: 196
Sending mail inside wordpress admin. Headers:
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=UTF-8\r\n";
With From/Reply-to headers its didnt work;
In the <a>
tag inside the letter all attrs( href
, style
) is gone.
Message i get from $_REQUEST
, textarea
tag where href display correct.
IF i use a constant string as argument for mail, links work properly. Please help.
Upvotes: 0
Views: 113
Reputation: 196
solved by myself. textarea send text with escape symbols ( \" instead " ). After removing its work
Upvotes: 1
Reputation: 1246
Try replacing your second line with:
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
This is taken from PHP.net.
Upvotes: 0
Reputation: 159
Please compare second line .
$headers = "MIME-Version: 1.0" . "\r\n";
$headers .= "Content-type:text/html;charset=UTF-8" . "\r\n";
Upvotes: 0