Email Functions

List Pop3:GetHeaders(String server, String user, String password, String lastMessageID, Number max)
Retrieves email headers from the given POP3 server (server), for the given user and password. Specifies the last message ID that was retrieved, and the maximum number of emails to return.

Note: If you are using GMail, then prefix the user name with "recent:" in order to retrieve the most recent messages.

List Pop3:GetMessages(String server, String user, String password, String lastMessageID, Number max, Boolean allowHtml)
Retrieves email messages from the given POP3 server (server), for the given user and password. Specifies the last message ID that was retrieved, and the maximum number of emails to return. If allowHtml is set, then the emails may contain HTML encoding.

NoReturn Pop3:DecodeMessages(Path path, List messages)
Decodes the list of messages retrieved in GetMessages such that any references to counter fields in the subject will automatically be associated with the given record. A link to the record will be inserted into the message.

NoReturn EMailUsersEx(List emailList, String subject, String htmlBody, List attachments)
Sends an email to the given list of user records, or list of email addresses. Attachments allows for a list of files to be attached to the email.

NoReturn EMailUsersFromEx(List emailList, String subject, String htmlBody, List attachments, String fromOverride)
Same as EMailUsersEx, but overrides the from email address that the email will be sent with.

List EMailUser(Any ouser, String subject, String body, FileData attachment)
Sends an email to the given user record (ouser) or email address.


Next Topic:
v4.2.0.956 (beta)
Up Since 2/29/2024 12:02:23 AM