Doc. # 1-2375001 | |||
---|---|---|---|
Date Updated | 05-25-2005 | Date Created | 03-23-2001 |
Document Type | Knowledge Base | Related OS | NT4.0/ Win98/ Windows ME/ WinCE |
Related Product | Advantech Studio |
How to send e-mail in AStudio? | |||
---|---|---|---|
Solution:
Please find attached to this message a sample application for e-mail functions. Below is the functions' description.
Mail Functions Description:
CnfEmail (strSmtp, strFrom, strPOP3, strUser, strPassword,numOptionalTimeOut)
Description:
Set SMTP parameters. This function must be executed to configure these parameters before sending emails with the SendEmail() function.
Parameters:
strSMTP: String or string tag with the SMTP (Simple Mail Transfer Protocol) server name or with the SMTP server IP Address. For CEView application it's
JUST allowed to use the SMTP IP Address.
strFrom: String or one string tag with the sender address.
strPOP3: POP3 name from the sender.
strUser: User account name from the sender.
strPassword: Password for the user account name from the sender.
numOptionalTimeOut: Timeout limit (in seconds) used when sending messages.This parameter is optional. When it's not configured, the default timeout
from operating system is used - recommended.
SendEmail(strSubject, strMessage, strTo)
Description:
Send e-mail messages. Before executing this function, it's necessary to set some parameters with the CnfEmail() function.
Parameters:
strSubject: String or string tag with the e-mail subject
strMessage: String or string tag with the e-mail message (up to 255 characters)
strTO: String or string tag with recipient address (target)
|