{"action":"created","issue":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/769","repository_url":"https://api.github.com/repos/PHPMailer/PHPMailer","labels_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/769/labels{/name}","comments_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/769/comments","events_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/769/events","html_url":"https://github.com/PHPMailer/PHPMailer/issues/769","id":165217616,"number":769,"title":"Mail with attachments viewing on Iphone","user":{"login":"h8itear","id":20429650,"avatar_url":"https://avatars.githubusercontent.com/u/20429650?v=3","gravatar_id":"","url":"https://api.github.com/users/h8itear","html_url":"https://github.com/h8itear","followers_url":"https://api.github.com/users/h8itear/followers","following_url":"https://api.github.com/users/h8itear/following{/other_user}","gists_url":"https://api.github.com/users/h8itear/gists{/gist_id}","starred_url":"https://api.github.com/users/h8itear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/h8itear/subscriptions","organizations_url":"https://api.github.com/users/h8itear/orgs","repos_url":"https://api.github.com/users/h8itear/repos","events_url":"https://api.github.com/users/h8itear/events{/privacy}","received_events_url":"https://api.github.com/users/h8itear/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-07-13T01:31:11Z","updated_at":"2016-10-25T18:18:32Z","closed_at":null,"body":"When viewing an email with an attachment(pdf in this case-approx 1mb) on a Iphone 6s (only one tested atm) The attachment is not shown/available.\r\nWhen sending to other email clients(Outlook, Android) the attachment is shown and able to be opened.\r\nWhen sending from outlook 2010 (same email and attachment) to same Iphone the attachment is shown and able to be opened.\r\nI am using phpmailer 5.1  "},"comment":{"url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/comments/256120187","html_url":"https://github.com/PHPMailer/PHPMailer/issues/769#issuecomment-256120187","issue_url":"https://api.github.com/repos/PHPMailer/PHPMailer/issues/769","id":256120187,"user":{"login":"capsandiego","id":13599520,"avatar_url":"https://avatars.githubusercontent.com/u/13599520?v=3","gravatar_id":"","url":"https://api.github.com/users/capsandiego","html_url":"https://github.com/capsandiego","followers_url":"https://api.github.com/users/capsandiego/followers","following_url":"https://api.github.com/users/capsandiego/following{/other_user}","gists_url":"https://api.github.com/users/capsandiego/gists{/gist_id}","starred_url":"https://api.github.com/users/capsandiego/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/capsandiego/subscriptions","organizations_url":"https://api.github.com/users/capsandiego/orgs","repos_url":"https://api.github.com/users/capsandiego/repos","events_url":"https://api.github.com/users/capsandiego/events{/privacy}","received_events_url":"https://api.github.com/users/capsandiego/received_events","type":"User","site_admin":false},"created_at":"2016-10-25T18:18:31Z","updated_at":"2016-10-25T18:18:31Z","body":"I use php-7.0.3 on Windows 2012 Server. PHPMailer version is 5.2.14\n\nWhen I send an HTML email to iPhone mail client with embedded images in the\nbody email *together with* a file attachment, the email is unreadable\n(message received as text, embedded images not loaded).\n\n<?php\nrequire_once(\"C:\\\\apps\\\\shared\\\\lib\\\\PHPMailer\\\\PHPMailerAutoload.php\");\n\n$mail                   = new PHPMailer;\n$mail->CharSet          = \"UTF-8\";\n$mail->isSMTP();                                               // Set\nmailer to use SMTP\n$mail->Host             = 'smtprelay1.example.com';       // Specify main\nand backup SMTP servers\n$mail->SMTPAuth         = false;                               // Enable\nSMTP authentication\n$mail->Port             = 25;                                  // TCP port\nto connect to\n$mail->setFrom('SENDER@example.com', 'SENDER');\n$mail->addReplyTo('sender@example.com', 'The Sender');\n$mail->Subject          = 'iPhone - Test';\n$mail->isHTML(true);\n$mail->SMTPDebug        = false;\n$mail->Debugoutput      = 'echo';\n\n/* Add the pdf file as a normal attachment */\n$mail->addAttachment(\"C:\\\\apps\\\\web\\\\pdf\\\\2098722387.pdf\", \"File.pdf\");\n\n/* Build the email body */\n$_email_body = '';\n$_email_body = '\n<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"\nhttp://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n<html xmlns=\"http://www.w3.org/1999/xhtml\">\n    <head>\n        <meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"\n/>\n        <title>Simple HTML Email</title>\n        <style type=\"text/css\">\n            @media only screen and (min-device-width: 601px) {\n            .content {width: 600px !important;}\n            }\n        </style>\n    </head>\n    <body>\n    <table class=\"content\" align=\"left\" cellpadding=\"0\" cellspacing=\"0\"\nborder=\"0\">\n    <tr><td style=\"font-family:calibri;\">Hello World! 你好，世界！</td></tr>\n';\n\n$image_list  = array('789284757_1' => \"C:\\\\apps\\\\web\\\\img\\\\1.jpg\",\n                     '789284757_2' => \"C:\\\\apps\\\\web\\\\img\\\\2.gif\",);\n\nforeach($image_list AS $id => $image_name_full){\n   $mail->AddEmbeddedImage($image_name_full, $id, $id.'.gif',\n'base64','image/jpeg');\n   $_email_body .= '<tr><td><img src=\"cid:'.$id.'\"></td></tr>';\n}\n\n/* set the email body */\n$mail->Body  = $_email_body.'</table></body></html>';\n\n/* send BCC email */\n$mail->addAddress('SENDER@example.com','SENDER');\n$mail->addBCC('someone@example.com');\n$mail->send();\n$mail->clearAttachments();\n$mail->clearAllRecipients();\n$mail = null;\n\nOn Fri, Oct 21, 2016 at 3:45 AM, Marcus Bointon <notifications@github.com>\nwrote:\n\n> Version 5.1 is *very* old and buggy. Update it. Post your code, show\n> exactly what the problem is.\n>\n> —\n> You are receiving this because you commented.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/PHPMailer/PHPMailer/issues/769#issuecomment-255208249>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AM-DIKlOrZsX5Qi5ec64gjKf6DL9WQWvks5q18TXgaJpZM4JK-36>\n> .\n>\n"}}
{"actor":{"display_login":"capsandiego"}}