SMTP

Last Updated On 2021-07-16

Version 1MinSDK 7Tutorial Video

A component for sending e-mail through SMTP server programmatically from device


Properties

You can set the below properties in the UI part of the builder.

  • Auth - it's a boolean value which is set to true by default.
  • Body - it's a string value which is set to body by default.
  • From - it's a string value which is set to from email by default.
  • HTML - it's a boolean value which is set to false by default.
  • Host - it's a string value which is set to smtp.gmail.com by default.
  • Password - it's a string value which is set to password by default.
  • Port - it's a string value which is set to 587 by default.
  • Subject - it's a string value which is set to subject by default.
  • TLSEnabled - it's a boolean value which is set to true by default.
  • To - it's a string value which is set to to email by default.
  • UserName - it's a string value which is set to email by default.

Block Properties

You can set the below blocks properties in the blocks section of the builder.

Auth

SMTP auth enabled

setSMTP.Auth to 

Body

Set the mail message body

setSMTP.Body to 

From

Set which email to be shown in receiver's message

setSMTP.From to 

HTML

Set the mail message body

setSMTP.HTML to 

Host

Set host

setSMTP.Host to 

Password

Sender password

setSMTP.Password to 

Port

Set port

setSMTP.Port to 

Subject

Set the mail title (subject)

setSMTP.Subject to 

TLSEnabled

TLS enabled

setSMTP.TLSEnabled to 

To

Set which email to be shown in receiver's message

setSMTP.To to 

UserName

Sender username

setSMTP.UserName to 


Methods

You can set the below method blocks in the blocks section of the builder.

Attachment

Set the mail message body

callSMTP.AttachmentpathfileName
Send

Send the email

callSMTP.Send

Events

You can set the below event blocks in the blocks section of the builder.

Error

Invoked when email sent fails

whenSMTP.Error message do
Sent

Invoked after email sent successfully

whenSMTP.Sentdo