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:
- 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
- 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 parameter "texttofile" 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://support_issues:user name:mypassword@mail.companyname.com/INBOX","true","Mail Id","Mail Sender","Attachments","update_interval=1m",”texttofile”)
- 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.