Fuego.Net : MailAccount

The MailAccount component retrieves emails from POP3 or IMAP accounts.

The MailAccount component uses an External Resource configuration of type Outgoing Email Service for the email server configuration.

Example

The following example receives emails from an email inbox configured in the email_orders External Resource of the project. For each email received, it creates a process instance:

externalResource ="email_orders"
mailAccount = MailAccount( implname : externalResource,
	              leaveMessages : false)

for each mail in mailAccount.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 : MailSender