SMTP Email

Use the SMTP Email VIs to send email, including attached data and files, using the Simple Mail Transfer Protocol (SMTP). You can use Transport Layer Security (TLS) to communicate with the SMTP server with added security. You also can specify authentication credentials for the SMTP client. However, you cannot use the SMTP Email VIs to receive information.

Note The SMTP Email VIs use UTF-8 encoding to send email.

You can use the Send Email Express VI to quickly send emails from LabVIEW to a list of recipients you specify. However, if you want to configure headers, set TLS settings, or include an attachment, you can use the standard SMTP Email VIs to configure and send an email with more advanced settings.

The standard SMTP Email VIs use an SMTP client handle to maintain the SMTP client settings across the block diagram. You can use individual VIs to set the email configuration. Close the client handle using the Close Handle VI when you no longer need it to free system resources.

The VIs on this palette can return SMTP email reply codes.

Refer to labview\examples\Data Communication\Protocols\SMTP\Send Email using SMTP Client.vi for an example of using multiple SMTP Email VIs in a single VI to send an email.


icon