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