{ "id": "124344", "key": "TIMOB-16123", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2014-01-03T06:15:41.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "SupportTeam" ], "versions": [ { "id": "14982", "description": "Release 3.2.0", "name": "Release 3.2.0", "archived": false, "released": true, "releaseDate": "2013-12-19" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:03:17.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h4. Problem Description\r\nWhen you add an attachment to the email Dialog, it won't send the mail\r\n\r\nh4. Test Case\r\n{code}\r\n var emailDialog = Titanium.UI.createEmailDialog();\r\n emailDialog.setSubject('Hello from Titanium!');\r\n emailDialog.setToRecipients(['mauropm@gmail.com']);\r\n emailDialog.setCcRecipients(['mauropm+test@gmail.com']);\r\n emailDialog.setBccRecipients(['mauropm+bcc@gmail.com']);\r\n\r\n if (Ti.Platform.name == 'iPhone OS') {\r\n emailDialog.setMessageBody('Appcelerator Titanium Rocks!å');\r\n emailDialog.setHtml(true);\r\n emailDialog.setBarColor('#336699');\r\n } else {\r\n emailDialog.setMessageBody('Appcelerator Titanium Rocks!');\r\n }\r\n\r\n \r\n // attach a file\r\n var f = Ti.Filesystem.getFile(Titanium.Filesystem.resourcesDirectory, 'test.pdf');\r\n emailDialog.addAttachment(f);\r\n\r\n emailDialog.addEventListener('complete',function(e)\r\n {\r\n if (e.result == emailDialog.SENT)\r\n {\r\n if (Ti.Platform.osname != 'android') {\r\n // android doesn't give us useful result codes.\r\n // it anyway shows a toast.\r\n alert(\"message was sent\");\r\n }\r\n }\r\n else\r\n {\r\n alert(\"message was not sent. result = \" + e.result);\r\n }\r\n });\r\n emailDialog.open();\r\n{code}\r\n\r\nh4. Steps to reproduce\r\n1. Create a new Mobile Project Classic Titanium\r\n2. Paste the test case to the app.js\r\n3. Run it \r\n4. Results: the code will alert that the mail was sent, but it never goes out of the device. ", "attachment": [ { "id": "44907", "filename": "test.pdf", "author": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "created": "2014-01-03T06:18:01.000+0000", "size": 123683, "mimeType": "application/pdf" } ], "flagged": false, "summary": "iOS: Email dialog doesn't send messages when attachment is a PDF with many pages", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Mac OS 10.9.1\r\nMobile SDK 3.2.0\r\nTitanium Studio 3.2\r\niOS 7", "comment": { "comments": [], "maxResults": 0, "total": 0, "startAt": 0 } } }