SendEmailExt

This function sends email messages with attached files.

Function Group Execution Windows Embedded Thin Client Mobile Access
SendEmailExt Email Asynchronous Supported Supported Supported Not supported

Syntax

Web Studio Help function email sendemailext.xml d115473e76 SendEmailExt

  SendEmailExt( strSubject, strMessage, strTo, optStrCc, optStrBcc, optStrFile1, … , optStrFileN )  
strSubject
The email subject (up to 255 characters).
strMessage
The email message (up to 255 characters).
strTo
The recipient’s address. You can specify more than one recipient, using a semicolon (;) to separate the addresses.
optStrCc
The recipients’ addresses to be Cc’ed. You can specify more than one recipient, using a semicolon (;) to separate the addresses.

This is an optional parameter, but if you need to use subsequent parameters, then you can specify a null string ("") here.

optStrBcc
The recipients’ addresses to be Bcc’ed. You can specify more than one recipient, using a semicolon (;) to separate the addresses.

This is an optional parameter, but if you need to use subsequent parameters, then you can specify a null string ("") here.

optStrFile1…optStrFileN
Complete file paths and names of file attachments.

Returned value

This function returns the following possible values:
Value Description
-4 Some or all of the specified file attachments were not found.
-3 Wrong number of parameters (at least three parameters are required).
-2 The library INDMail.DLL is the wrong version.
-1 The library INDMail.DLL is corrupted.
0 Function executed successfully.
1 Cannot send email because another email is still pending.
2 Cannot send email because a new thread cannot be created.

Notes

Before you can send any email, you must first use the function CnfEmail to configure the email settings. Incorrect settings can result in several different error codes (see “Returned value” above).

Examples

Tag Name Expression
Tag SendEmailExt( “Subject”, “Message”, “Sam@universe.com”, “”, “”, “C:Projects eport.txt” )
Tag SendEmailExt( “Subject”, “Message”, “David@Ohio.net”, “Ted@Austin.com”, “Bart@Springfield.gov”, “C:TechRef51.doc” )

SendEmailExt