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


Body

Set the mail message body


From

Set which email to be shown in receiver's message


HTML

Set the mail message body


Host

Set host


Password

Sender password


Port

Set port


Subject

Set the mail title (subject)


TLSEnabled

TLS enabled


To

Set which email to be shown in receiver's message


UserName

Sender username



Methods

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

Attachment

Set the mail message body

Send

Send the email


Events

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

Error

Invoked when email sent fails

Sent

Invoked after email sent successfully