SYS(8015) - Send Emails via SMTP

Top  Previous  Next

Sends an e-mail using the SMTP protocol.

Syntax

SYS( 8015, cFrom, cTo, cSrv, cUser, cPwd, cSubject, cBody )

Parameters

cFrom

Your e-mail address. This can be any valid or invalid e-mail address. However, some SMTP servers only accept e-mails for transport that match the user account.

 

cTo

The e-mail address of the recipient.

 

cSrv

The name or IP address of the sending SMTP server. You either need an account on this SMTP server, or the server must relay mails anonymously.

 

cUser

The user or logon name for the SMTP server, if you must provide the server with logon credentials.

 

cPwd

The password for the SMTP server logon.

 

cSubject

The subject line for your e-mail address. Although this parameter can be an empty strings, it's recommended to specify a subject. Otherwise spam filters might reject your message.

 

cBody

The actual content of the mail as plain text. There's no limit for the length of the message in Guineu. However, most SMTP servers impose a maximum size.

Remarks

Sending mails requires internet connectivity on the sending machine. You can use e-mails on mobile devices as an alternative to a printed receipt, because printing is quite difficult to implement on mobile devices.

Dependencies

Operating System

Required libraries and modules at runtime

Windows Mobile

Windows CE

OpenNETCF.Net.Mail.dll