Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

Guideline for using the Email App from WICED SDK 3.1.2

Guideline for using the Email App from WICED SDK 3.1.2

JaeyoungY_71
Employee
Employee
First comment on KBA 25 solutions authored 10 solutions authored

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.

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.

Google Settings Security

 

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.

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.

Support Google - Troubleshooter

 

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

675 Views
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.

JaeyoungY_71
Employee
Employee
First comment on KBA 25 solutions authored 10 solutions authored

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

jokic_4204756
Level 0
Level 0

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 .