Datasheet
Flyport Wi-Fi and Ethernet Programmer's guide framework 2.3 (rev 1.0) www.openpicus.com
SMTPSetMsg(MSG_FROM, "user@lavabit.com");
SMTPSetMsg(MSG_SUBJECT, "Flyport SMTP test!!");
UARTWrite(1,"Client SMTP initialized!\r\n");
vTaskDelay(100);
// wait for sending complete
if(SMTPSend())
{
UARTWrite(1,"sending email...\r\n");
while(SMTPBusy() == TRUE)
{
UARTWrite(1,".");
vTaskDelay(10);
}
UARTWrite(1,"\r\nEmail sent!\r\n");
}
else
{
UARTWrite(1,"\r\nError in email sending");
}
WORD report = SMTPReport();
sprintf(reportResult,
"report result: %u\r\n", report);
UARTWrite(1, reportResult);
}
}
}
}
}
49










