> On Sep 20, 2017, at 4:31 PM, Kerim Aydin <ke...@u.washington.edu> wrote:
> 
> 
> 
> You just solved my problem o!!
> 
> I had a line:
>    mail("ke...@u.washington.edu", $subject, $CFJ_text, $headers);
> 
> but the problem was that, $headers was being stored as an array, not a 
> string, so it just dropped
> with an invisible warning (I was following Example 4 on that manual page and 
> left out the 'implode'
> somehow, and looked at it 100 times without seeing it).   I just emailed 
> myself some Arabic
> successfully.  Thanks much.

For what it’s worth, “headers as a \r\n-delimited string” is juuuuust about the 
worst possible way they could have designed that API. An associative array of 
strings or of arrays (for multi-valued headers) would be so much nicer to work 
with. I think that’s a nearly inevitable bug just due to bad API human factors.

-o

Attachment: signature.asc
Description: Message signed with OpenPGP

Reply via email to