socket programming issue

I have this Atmel code (see attached files) that I have modified for my needs. It connects to my wifi home router and sends out an SMTP email.
I could not get it to work to send two emails one after the other.
What I also noticed is that none of the printf msgs are printed out except the send mail msg . e.g the line "printf("main: smtpConnect succeeded.\r\n");" produces no output even though I know the smtp connection was made.

I just realized that there is no option for uploading files so I will put in the drop box links for the source code.

https://www.dropbox.com/s/k5y3rf2s2axquwi/main.c?dl=0
https://www.dropbox.com/s/l08dymizo0iezq6/main.h?dl=0

here is what I see on the terminal output

"
-- WINC1500 send email example --
-- SAMW25_XPLAINED_PRO --
-- Compiled: Mar 26 2016 13:37:23 --
(APP)(INFO)Chip ID 1503a0
(APP)(INFO)Firmware ver : 19.4.4
(APP)(INFO)Min driver ver : 19.3.0
(APP)(INFO)Curr driver ver: 19.3.0

Provision Mode started.
Connect to [atmelconfig.com] via AP[WINC1500_FB:02] and fill up the page.

wifi_cb: M2M_WIFI_RESP_CON_STATE_CHANGED: CONNECTED
wifi_cb: M2M_WIFI_REQ_DHCP_CONF: IP is 192.168.1.100
wifi_cb: M2M_WIFI_RESP_CON_STATE_CHANGED: DISCONNECTED
wifi_cb: M2M_WIFI_RESP_PROVISION_INFO
wifi_cb: M2M_WIFI_RESP_CON_STATE_CHANGED: CONNECTED
wifi_cb: M2M_WIFI_REQ_DHCP_CONF: IP is 192.168.0.10
Host IP is 74.125.141.108
Host Name is smtp.gmail.com
Recipient email address is skicorpllc@gmail.com
main: Email was successfully sent.
main: Email was successfully sent
"
Last edited on
anyone ?
Topic archived. No new replies allowed.