{ "id": "154034", "key": "AC-936", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "11", "description": "Is not a bug in our product", "name": "Not Our Bug" }, "resolutiondate": "2016-01-07T05:35:25.000+0000", "created": "2015-12-24T06:23:58.000+0000", "labels": [], "versions": [ { "id": "17032", "name": "Appcelerator Studio 4.3.0", "archived": false, "released": false } ], "issuelinks": [], "assignee": { "name": "rtlechuga", "key": "rtlechuga", "displayName": "Radamantis Torres-Lechuga", "active": false, "timeZone": "Asia/Dubai" }, "updated": "2016-03-08T07:37:15.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "14551", "name": "Studio", "description": "Please enter tickets related to Titanium Studio here." }, { "id": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "When using the resetpassword function in ti.cloud, the user is not receiving the email.\r\n\r\nWhen I make changes to my smtp settings in appcelerator platform, it does send a confirmation email.\r\n\r\nI tried adding the \"from\" field in the code as was suggested as a fix on the q&a forum, but still the user is not receiving an email. \r\n\r\nI have confirmed that cloud is trying to send the email, see attached screenshot.\r\n\r\n\r\n", "attachment": [ { "id": "57837", "filename": "Screen Shot 2015-12-23 at 9.49.38 pm.png", "author": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-24T06:23:04.000+0000", "size": 239369, "mimeType": "image/png" } ], "flagged": false, "summary": "Ti cloud Reset Password - user does not receive email", "creator": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "{code:java}\r\nfunction resetPassword(eMail) { \r\n\tSS.Cloud.Users.requestResetPassword({\r\n email: eMail, \r\n from: 'hello@shabu.co',\r\n}, function (e) {\r\n\tSS.loading.stopProgress();\r\n if (e.success) {\r\n alert('Success: Your password has been reset, please check your email. ');\r\n } else {\r\n alert('Error:\\n' +\r\n ((e.error && e.message) || JSON.stringify(e)));\r\n }\r\n\t});\r\n};\r\n{code}", "comment": { "comments": [ { "id": "373523", "author": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "body": "Hello according to your code provide the from address as \"hello@shabu.com\". Try like the below code\r\n{code}\r\nfunction resetPassword() {\r\n Cloud.Users.requestResetPassword({\r\n email: email.value,\r\n from: 'notifications@mydomain.com'\r\n }, function (e) {\r\n if (e.success) {\r\n alert('Success: Reset Request Sent');\r\n } else {\r\n alert('Error:\\n' +\r\n ((e.error && e.message) || JSON.stringify(e)));\r\n }\r\n });\r\n}\r\n{code}\r\n\r\nYou first need to build a form with a textfield in your interface. This form will then feed a value into your resetPassword function - eg 'email.value' above would be from such a textfield. So it will send the reset password request to the email address you enter. And this of course should be the email address for an existing account. More info on [here|https://developer.appcelerator.com/question/178398/titanium-cloud-email-reset-password-not-working]. Thanks.", "updateAuthor": { "name": "sdarda", "key": "sdarda", "displayName": "Sharif AbuDarda", "active": false, "timeZone": "Asia/Dhaka" }, "created": "2015-12-24T09:53:59.000+0000", "updated": "2015-12-24T09:53:59.000+0000" }, { "id": "373529", "author": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi, the hello@shabu.co email is the email address that the email is being sent from (the address in my smtp settings on ACS). The eMail parameter is the email address passed to the function from the textfield so I have set this up correctly.\r\n\r\nin the attachment I have used another of my own email accounts to send the mail to, however this email is not being received. ", "updateAuthor": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-24T14:40:31.000+0000", "updated": "2015-12-24T14:40:31.000+0000" }, { "id": "373627", "author": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "just another update to show the log from ACS that the email is being sent: (I do have a template setup called \"csv\" ) \r\n\r\nDec 29, 2015 11:15 PM\r\nRequest\r\nPOST /v1/custom_mailer/email_from_template.json\r\nStatus 200\r\nSource IP 124.191.230.215\r\nParameters\r\n{\r\n \"suppress_response_codes\": \"true\",\r\n \"recipients\": micksolo@gmail.com,\r\n \"template\": \"csv\",\r\n \"from\": \"hello@shabu.co\",\r\n \"key\": \"qyaNPmLEauV3G5bGctqXAwpN4CYBJtiA\",\r\n \"_session_id\": \"bmHtcWMAQ-CCrb-ZttCT_LIE-X0\"\r\n}\r\n/v1/custom_mailer/email_from_template.json?&suppress_response_codes=true&recipients=t950154@testing.fastmail.fm&template=csv&from=Mick&key=qyaNPmLEauV3G5bGctqXAwpN4CYBJtiA&_session_id=bmHtcWMAQ-CCrb-ZttCT_LIE-X0", "updateAuthor": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-30T10:47:33.000+0000", "updated": "2015-12-30T10:47:33.000+0000" }, { "id": "373643", "author": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I have resolved this issue with some help from my mail provider and working out that when I click \"save changes\" on the smtp setup screen on ACS, for some reason my password was being changed (probably to my appcelerator password).\r\n\r\nThe SMTP fix was to change the port to 587 and now my users are receiving emails sent from Ti.cloud. ", "updateAuthor": { "name": "micksolo", "key": "micksolo", "displayName": "Mick", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2015-12-30T21:28:39.000+0000", "updated": "2015-12-30T21:28:39.000+0000" } ], "maxResults": 4, "total": 4, "startAt": 0 } } }