cancel
Showing results for 
Search instead for 
Did you mean: 

Resource Library

Using the Email App From WICED SDK 3.1.2

Employee

Using the Email App From WICED SDK 3.1.2

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.

In /apps/snip/email/email.c,

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.

email_recipient.PNG

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.

email_sender.PNG

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.

https://www.google.com/settings/security/lesssecureapps

less_secure.PNG

4. You will also have to allow access to the new device from an already proven device(laptop, phone) on this link.

https://accounts.google.com/DisplayUnlockCaptcha

allow_access.PNG

Press Continue and it will show the following.

access_enabled.PNG

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.

https://support.google.com/accounts/troubleshooter/3141849#ts=3202254

Two_step.PNG

6. Once you have gone through these settings you should be able to send an email to your account successfully.

wiced_email.PNG

Comments
Anonymous
Not applicable

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.

Employee

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.

Anonymous
Not applicable

Hey Jaeyoung,

I am unable to complete the Step no 5.

This is what I get while I am on the App Password page.

appPasswords.png

No option to generate a new app password.

Best Regards,

AB

Anonymous
Not applicable

I tried the steps that you mentioned for the email app.

However, the app fails to  send an email.

Anonymous
Not applicable

Hi jaeyoung

I am facing the same issue can you please update on this?

Thanks RJ

New Contributor

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 .

Version history
Revision #:
1 of 1
Last update:
‎Jun 18, 2015 03:15 PM
Updated by:
 
Contributors