Owning Palette: SMTP Email VIs
Requires: Base Package
Sends an email with an attached file to a list of recipients.
|return address is the email address of the message sender. When you do not specify a return address, an empty string is sent to the server. While you are not required to include a return address for this VI to work, some mail servers do not accept messages without this information.|
|mail server is the name or IP address of a valid SMTP server. If you pass an empty string to this input, LabVIEW refuses the network connection and returns error 63.|
|recipients is the array of strings that contains the email addresses of the message recipients. Each address can be a separate array element.|
|subject is the subject line of the message. The default is [No Subject].|
|message is the text message, formatted using the system character set, of the email. LabVIEW converts this string to UTF-8 format before sending the email.|
|file path is the path to the file you want to attach. You can attach a string or a file on the local computer.|
|error in describes error conditions that occur before this node runs. This input provides standard error in functionality.|
|binary? specifies whether the attachment is text, described by the character set parameter, or binary, described by the MIME content-type parameter. The default is FALSE, which specifies a text attachment.|
|MIME content-type determines the content type for a binary attachment to the message. You can specify any type of content that the RFC 2045 standard supports, including the following commonly used content types:
|invalid recipients lists the recipients rejected by the mail server.|
|error out contains error information. This output provides standard error out functionality.|
Refer to the EMail with Data VI in the labview\examples\comm\smtpex.llb for an example of using the SMTP Email Send File VI.