Incoming Mail Processing Functions
As opposed to the server routines, we use here full structures because we have access to the whole email.
IncomingMail
string subject;
string body;
string htmlBody;
string [] to;
string [] cc;
string [] from;
string [] replyTo;
IncomingEmailHeader [] headers;
IncomingEmailAttachment [] attachments;
string contentType;
date sentAt;
date receivedAt;
int size;
IncomingMail [] embeddedMessages;
IncomingEmailHeader
string name;
string value;
IncomingEmailAttachment
string fileName;
string contentType;
int size;
byte [] content;
Example usage
Standard processing:
Peacock