Guideline for using the Email App from WICED SDK 3.1.2
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
With Google's reinforced security measures, there are a few settings you need to change in order to use the email app successfully with a Gmail account.
How to use the Email App from from WICED SDK 3.1.2?
In /apps/snip/email/email.c follow these steps to to send an email to your account successfully:
1. Change the RECIPIENT to your personal email account that you want to receive the message in. This does not have to be a gmail account.
2. In the send_email() function within the same file (line 121), you will have to change the following to your own gmail account. Other email providers can be used for this but may have additional security measures. We have verified the process for gmail accounts so we advise that you do the same.
1) account.email_address
2) account.user_name
3) account.password
**Previously we have provided an email account as default to use as the sender, but with the increased gmail security measures it will no longer be possible to use this account.
3. If you try running the program after the first two modifications you will get a notification email from google that they blocked a sign-in attempt to your Google account. You will have to login to your account and change your settings at the following link to allow access for less secure apps.
4. You will also have to allow access to the new device from an already proven device(laptop, phone) on this link.
Press Continue and it will show the following:
5. In most cases the above steps should be sufficient. In the case you have the 2-step verification enabled on your account, you will have to generate a separate password in the below link.
Support Google - Troubleshooter
6. Once you have gone through these settings you should be able to send an email to your account successfully.
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Hey Jaeyoung,
I tried the steps that you mentioned for the email app.
However, the app fails to send an email. I changed the smtp settings and the email credentials. Please can you cross check.
Best Regards,
AB.
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Are you using a gmail account? You will have to go through steps #3-#5 in order to remove the blockage of sending an email from a new device through gmail.
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
Hey Jaeyoung,
I am unable to complete the Step no 5.
This is what I get while I am on the App Password page.
No option to generate a new app password.
Best Regards,
AB
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
I tried the steps that you mentioned for the email app.
However, the app fails to send an email.
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
- Subscribe to RSS Feed
- Mark Article as New
- Mark Article as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
It is because Google blocks gmail smtp sign-in attempts from apps which do not use modern security standards (mentioned on their support page). You can however, turn on/off this safety feature by going to the link below:
Go to this link and select Turn On
https://www.google.com/settings/security/lesssecureapps
Moreover google block an ip when you try to send a email since a unusual location, so, you can unblock in the next link
https://support.google.com/accounts/answer/6009563
and clicked in
accounts.google.com/DisplayUnlockCaptcha .