email - PHP-made e-mail not showing up in iPod -


some time ago i've created php-script sends mime-encoded e-mails. works fine, inclusive attachments , inline images. strangely, these e-mails not show in inbox of ipod touch (3th generation, ios 5.1.1), although show in windows live mail, gmail , ipads/iphones of higher generations. i've compared source of original message original message forwarded gmail (as forwarded message doest recognised ipod). seems there not single difference in mime-structure.

does knows whether there has specific sequence of to, from, subject, ...-headers working? here sample message:

[bladibladibla]  date: wed, 7 aug 2013 13:02:31 +0000 to: name <email@domain.com> subject: test 5 x-php-originating-script: 0:email.php mime-version: 1.0 from: name <email@domain.com> reply-to: name <email@domain.com> content-type: multipart/mixed; boundary=boundmixed --boundmixed     content-type: multipart/related; boundary=boundrelated      --boundrelated         content-type: multipart/alternative; boundary=boundalternative          --boundalternative             content-type: text/plain; charset=utf-8             content-transfer-encoding: 7-bit              [plain text]          --boundalternative             content-type: text/html; charset=utf-8             content-transfer-encoding: 7-bit              [html]          --boundalternative--      --boundrelated         content-type: image/png; name="logo.png"         content-transfer-encoding: base64         content-id: <logo.png@domain.com>          [inline image data]      --boundrelated--  --boundmixed     content-type: text/plain; name="file.txt"     content-disposition: attachment; filename="file.txt"     content-transfer-encoding: base64      [attachment data]  --boundmixed-- 

for sake of clarity replaced boundary-hashes human-readable things. intended different parts make more readable; not case real data!

is there possibly problem php mail()-function? or there strict rule number of linefeeds after boundaries?

thanks in advance!


Comments

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -