Fuego.Net : MailServer

The MailServer component retrieves emails from POP3 or IMAP accounts.

Note:

The MailAccount component provides more functionality and uses an External Resource for the email server configuration.

Example

The following example receives emails from the POP3 inbox of the orders user with password passwd at the pop.oracle.com server. For each email received, it creates a process instance:

for each mail in MailServer("pop3://orders:passwd@pop.oracle.com", true).messages 
do 
  // create a process instance passing the email as argument
  ProcessInstance.create("someProcess", ["email" : mail ], "BeginIn")
end 
Related reference
Fuego.Net : Mail
Fuego.Net : MailAccount