Administering : Managing business rules and expressions : Business rule definition examples : MailImport example
  
MailImport example
In this example, the MailImport business rule is used to import emails about support issues to a Support Issues module.
To import the emails about support issues to an inbox folder in the Support Issues module
1 Make sure that you have the required attributes in the Support Issues module:
The mail sender attribute, which must be a Text attribute
The email-ID attribute, which must be either a Text or Integer attribute
The file attribute, which must be a File attribute
2 In the business rule container folder, enter the following business rule. You can use the Description attribute.
=MailImport("pop3://support_issues:mypassword@mail.companyname.com/INBOX",
"true","Mail sent from","Mail-ID",
"Attachments","update_interval=1m")
Note To attach a text file, use the texttofile parameter at the end of the business rule. This parameter is added so that the text file is displayed as an attachment in the mail. Else the content of the text file is displayed in the description.
=MailImport("pop3://user name:mypassword@mail.companyname.com/INBOX",
"true","Mail Id","Mail Sender",
"Attachments","update_interval=1m",”texttofile”)
3 Set the Owner attribute for the folder. You might create a user named MailImporter to be the Owner of the folder. Whenever an email is sent to the specified email address (support_issues@domain.com), an element is created in the Support Issues module.
See also
MailImport business rule
Business rule definition examples