Mail Notification Rule
Sending mail to the recipients of the subscription.
Only one MailNotifcationRule is necessarly within a subscription.
Methods
|
|
_getBody
_getMailFrom
_getSubject
_makeInfoDict
notifyConfirmSubscription
notifyConfirmUnSubscribe
notifyRecipients
notifyUnSubscribe
notifyWelcomeSubscription
|
|
_getBody
|
_getBody ( self, infos )
Returns the body of the email.
Is proccessed with the infos given as parameters.
|
|
_getMailFrom
|
_getMailFrom ( self, object )
Return an email for the mail from field of the mail.
- - Creator of the object if an object has been created.
2 - CPS Administator.
3 - Others ?
|
|
_getSubject
|
_getSubject ( self, infos )
Returns the subject of the email.
Is proccessed with the infos given as parameters.
|
|
_makeInfoDict
|
_makeInfoDict (
self,
event_type,
object,
infos={},
)
Building the infos dict used for processing the email.
|
|
notifyConfirmSubscription
|
notifyConfirmSubscription (
self,
event_id,
object,
email,
context,
)
Mail notification for subscription
This method is called when soemone want to subscribe
|
|
notifyConfirmUnSubscribe
|
notifyConfirmUnSubscribe (
self,
event_id,
object,
email,
context,
)
Mail notification for confirm unsubscription message
This method is called when someone just confirm the unsubscription
|
|
notifyRecipients
|
notifyRecipients (
self,
event_type,
object,
infos=None,
emails=[],
members=[],
groups=[],
**kw,
)
Notify recipients
This method will be called by the Subscription object when a
notification occurs.
|
|
notifyUnSubscribe
|
notifyUnSubscribe (
self,
event_id,
object,
email,
context,
)
Mail notification for unsubscription message
This method is called when someone just unsubscribe
|
|
notifyWelcomeSubscription
|
notifyWelcomeSubscription (
self,
event_id,
object,
email,
context,
)
Mail notification for subscription welcome message
This method is called when someone just subscribe
|
|