DIY: How to send email with FLYPORT using SSL

Posted by openPicus | On: Apr 03 2012
FLYPORT modules can send email both with SSL or without SSL!



The SSL (Secure Sockets Layer) permits to encrypt data, so your messages are now safe. In addition, to use the standard email providers is even simple and no specific settings must to be done on email account.
To help the using of the integration of SSL libraries inside the openPicus IDE, we released our lastest Application Note, which contains a easy installer tool to add 2 templates inside the IDE 2.2: one is for FLYPORT Wi-Fi and the other is for FLYPORT Ethernet.


Since SSL Encryption Libraries are not free of charge, to use those templates, the developer have to buy a (low cost, just some dollars…) CD from microchip-direct (code SW300052) and import 2 files inside the projects generated with the SSL templates, using the External Lib tool of the IDE.





Anyway, the following step-by-step guide helps you on the whole process!


The firmware is simple to use:

  1. Follow the example on page 44 of the Programmers’ guide for the SMTP service 
  2. Prepare the email parameters:
  • enable the use of SSL for email with  SMTPClient.UseSSL = TRUE;
  • set server name
  • set user name
  • set password
  • set server port
  • set sender email
  • set destination email
  • set email subject
  • set email message
  • start the send process
  • wait the process to end
  • check the report from server

  • The difference between email with SSL or without SSL is only in the project template external libs and in the SMTPClient.UseSSL = TRUE; You can choose between one mode or the other even at runtime: openPicus framework handles the TCPIP stack automatically!

    Simple, easy and fast!

    1 Comment

    1. Charudatt says:

      WoW……… great and thanks. Impressed.

      regards

    Leave a comment