This guide explains how to send an email with your Smartface project.
The Smartface let developers to build an application enables sending emails. The email methods can be reached under "SMF.Net. library". These methods directly use the available email applications which are installed in the device.
The "sendMail" method requires some parameters to work and it has success and failure callback events.
|to||String||The email address that you want to send an email.|
|cc||String||The email addresses that you want to send the cc (carbon copy) of the email.|
|bcc||String||The email addresses that you want to send the bcc (blind carbon copy) of the email.|
|title||String||The title of the email which you will send, it is generally called as subject.|
|body||String||The body of the email, it is generally the message of the email.|
|attachment||Array||The attachment of the email, it can be a file, image or any kind of document|
|onSuccess||Function||The function that will be called if sendMail succeeds.|
|onFailure||Function||The function that will be called if sendMail fails.|
The sample use of sending an email is shown as below :
Any file can be sent via email. In the sample below we show how to capture a photo and send it via email :