Personal tools
Support

Get Help

Join our chat rooms or support forums if you have more specific questions.

Plone Training
Learn how to design, build, and deploy a website in Plone through one of the numerous Plone training sessions around the world.
Find Plone training…
 
Document Actions

Usage

Basic usage of mailtoplone

Hans-Peter Locher

Mailtoplone's main purpose is to create plone content from emails. The emails are delivered to plone as plaintext containing the entire email including the envelope. Mailtoplone makes heavy use of the zope 3 component architecture and plone's content rules. The tutorial explains the approach and shows an example usecase.
Page 2 of 5.

The question is, how do emails get to your plone instance?

Drop a mail to plone


Mailtoplone defines an InBox, to be populated with Emails. This folderish type can be populated using a xmlrpc method.
Dropping a mailstring (a plaintext string containing the whole email including envelope), a plone content type
Email will be generated, the data field will contain the mailstring. To ease the usage of this xmlrpc method, a script can be
used:

    - dropemail
      (specify the url of the InBox and optional a file ( if no
      file is specified will use stdin)

You can integrate this script to your mailserver to automatically drop mails to plone.

Further processing


Having the email inside plone, we're able to work with it. Remember we mentioned rules as an important principle.
Plone has a great rule mechanism, called Content Rules
Having custom actions and conditions enables the processing to be flexible. The idea is to use the global InBox,
which all mails are dropped to and assign content rules to it, to further process the Emails.

 
by Hans-Peter Locher last modified February 6, 2008 - 11:08 All content is copyright Plone Foundation and the individual contributors.

For any issues with the web site functionality, please file a ticket.

Please consult the policy on plone.org content if you want your content published on this site.

Servers and hosting by