I see a similar failure when using SDK 2.4.0-RC1:
Neither of you posted a wirelesss wireshark packet capture so
@santol : did you use the WICED email address?
I am traveling this week, but will provide the WireShark capture.
I just tested the email snippet works using SDK-2.4.0.
#define RECIPIENT "firstname.lastname@example.org"
account.email_address = "email@example.com"; /* or use your email account */ account.user_name = "mygmailname"; /* or use your username */ account.password = "XXXXXX"; /* or use your password */
snip.email does work when changing the login credentials of the sender to my personal information - Thank You.
Great you got it to work!
The instructions at the top of the C file clearly state we must modify #define RECIPIENT. Its only deeper in that we learned we must also modify send_email() routine to use our personal gmail credentials as well.
I updated the app instructions immediately after my last post.
/** @file * * SMTP e-mail Application * * This application demonstrates how to use the WICED SMTP API * to send a secure email. * * Features demonstrated * - Wi-Fi client * - SNTP time synchronisation * - DNS lookup * - SMTP (email) send * * Application Instructions * 1. Modify the CLIENT_AP_SSID/CLIENT_AP_PASSPHRASE Wi-Fi credentials * in the wifi_config_dct.h header file to match your Wi-Fi access point * 2. Change the #define RECIPIENT email address to match your email address * 3. If desired, change the email account used to send email (or use * the default firstname.lastname@example.org account) * 4. Connect a PC terminal to the serial port of the WICED Eval board, * then build and download the application as described in the WICED * Quick Start Guide * * After the download completes, the application : * - Connects to the Wi-Fi network specified * - Updates the local time from the network using the SNTP library * - Attempts to send an email to the RECIPIENT email address and * prints the result to the terminal * - Shuts down * * IMPORTANT NOTE * The username/password of the email@example.com email account used * in this application is provided in good faith to enable demonstration * of the WICED SMTP API. Please *DO NOT* use the email address in a * malicious way or use the email address to send unsolicited SPAM email * to others. Thankyou. * * Google occasionally blocks the WICED email account used to send email, * it may be necessary to specify your own email account as noted in point * (3) above. * */
We are also facing the same problem with snip.email. The only difference between your case and us is,we are using sdk 3.1.2. You have posted your query long back, I think you may got the solution by now. So please help us to solve the issue. we did what ever required changes are needed like changing the sender and receipt emails to our personal mail ids and also tried by changing the port number to different ones(i.e.465,25). Here is the output :
Starting WICED v3.1.2
Platform BCM9WCDPLUS114 initialised
Started ThreadX v5.6
Initialising NetX_Duo v5.7_sp1
Creating Packet pools
WWD SDIO interface initialised
WLAN MAC Address : FC:4D:D4:FF:C3:B4
WLAN Firmware : wl0: Nov 7 2014 16:03:45 version 126.96.36.199 FWID 01-cf14784f
Joining : Connectify-maanya
Successfully joined : Connectify-maanya
Obtaining IPv4 address via DHCP
Setting IPv6 link-local address
IPv4 network ready IP: 192.168.53.101
Getting NTP time... success
Current time is: 2015-05-19T07:10:41.058712
Querying DNS server for smtp.mail.yahoo.com
Successfully retrieved SMTP server IP : 188.8.131.52
Sending email ... FAILED!