CEmail Class |
|
Namespace: VO
The CEmail type exposes the following members.
| Name | Description | |
|---|---|---|
| AttachmentFileList |
Array containing the names of the attached files.
(Overrides AttachmentFileList.) | |
| AttachmentInfo |
Returns or sets the information about all attachments as a single string.
For each attachment there is a separate line.
Each line contains: The Fully qualified filename, Content Type, Encoding, ID, Size, ContentId
| |
| BCCList |
Array of strings containing the e-mails of all blind carbon copy (BCC) recipients.
| |
| Boundary |
String value used as boundary for different e-mail parts.
| |
| CCList |
Array of strings containing the e-mails of all carbon copy (CC) recipients.
| |
| DestList |
Array of strings containing the e-mail addresses of all recipients.
| |
| DispositionNotification |
A string containing the email address of a party to be notified that the email was received. This is sometimes replaced with a Return Receipt by some email clients.
| |
| HTMLText |
A properly formed HTML text string suitable for display in a web browser pane. If the email did not contain an HTM component, one is formed from the Text component by wrapping it in appropriate tags.
If the email did contain HTML and had embedded images (marked with src="cid:) then these references will be replaced with references to the actual files names of these images.
| |
| MailPriority |
Numeric value representing the e-mail priority.
| |
| ReturnReceipt |
A string containing the email address of a party to be sent a receipt advice. Some email clients may use this to contain a return receipt and others may use Disposition Notification instead.
| |
| Size | **Missing documentation ** |
| Name | Description | |
|---|---|---|
| AddAttachment |
Adds an attachment to the email.
| |
| CloneAttachments |
Clones the internal Attachment array.
| |
| CreateHtml |
Creates a HTML body based on the text body of the email message.
| |
| CreateReplyBody |
Prepares a default text response.
| |
| Decode |
Extract all information from the various parts of an e-mail.
(Overrides Decode(Usual).) | |
| DeleteAttachment |
Adds an attachment to the email.
| |
| GetAttachmentInfo |
Method to decode all header elements of an email
| |
| GetHeaderInfo |
Method to decode all header elements of an email
(Overrides GetHeaderInfo.) | |
| MimeEncode |
Method to encode a string using a specific encoding or the default encoding of an email
| |
| MimeHeader |
Method to encode an MIME Attachment header
| |
| SaveAs |
Decode and save the specified encoded attachment of an e-mail as a local file.
(Overrides SaveAs(Usual, Usual, Usual).) | |
| SetAttachmentInfo |
This method allows you to replace elements of the internal attachment array of the email object.
| |
| SetHeaderInfo |
Method to encode all header elements of an email
| |
| StreamIn |
This method gets called when an email messages is received. It calls into the Storage object to decode and store attachments.
| |
| StreamOut |
Generate message contents
| |
| StreamStart |
Initialize the Stream Status of an email message.
|
1FUNCTION SMTPSendMail (cServerIP AS STRING,; 2 cMailSubject AS STRING,; 3 xDestUser AS USUAL,; 4 xCCUser AS USUAL,; 5 cBody AS STRING,; 6 cFromAddress AS STRING,; 7 xAttachFile AS USUAL,; 8 cFromName AS STRING,; 9 xBCCUser AS USUAL,; 10 cCargo AS STRING) AS LOGIC PASCAL 11 LOCAL oSmtp AS CSMTP 12 LOCAL lRet AS LOGIC 13 LOCAL oEmail AS CEmail 14 oEMail := CEmail{} 15 oEmail:FromAddress := cFromAddress 16 oEmail:FromName := cFromName 17 oEmail:Cargo := cCargo 18 oEmail:Subject := cMailSubject 19 oEmail:DestList := xDestUser 20 oEmail:CCList := xCCUser 21 oEmail:BCCList := xBCCUser 22 oEmail:MailBody := cBody 23 IF !IsNil(xAttachFile) 24 oEmail:AttachmentFileList := xAttachFile 25 ENDIF 26 oSmtp := CSmtp{oEmail} 27 oSMtp:RemoteHost := cServerIP 28 oSmtp:TimeOut := 5000 29 lRet := oSmtp:SendMail() 30 RETURN lRet