Transcript
Page 1: Drupal Email Features

Email Marketing With Drupal

Robert Castelo, Code Positive Ltd.

Page 2: Drupal Email Features

How Can A Site Use Email?

• Registration / account messages

• Newsletters

• Notification of new posts

• Notification of new comments

• Post content via email

Page 3: Drupal Email Features

System Messages

• Welcome message (registration)

• Welcome message (added by admin)

• Password reminder

Page 4: Drupal Email Features

Welcome MessageJane Smith,

Thank you for registering at Example.com. You may now log in to http://www.example.com/user using the following username and password:

username: Jane Smithpassword: re*llysecure2

You may also log in by clicking on this link or copying and pasting it in your browser:

http://www.example.com/user/reset/401/1222256899/1764a2611e26858b69b46dcef0981f87

This is a one-time login, so it can be used only once.

After logging in, you will be redirected to http://www.example.com/user/401/edit so you can change your password.

-- Example.com team

Page 5: Drupal Email Features

Welcome Message!username,

Thank you for registering at !site. You may now log in to !login_uri using the following username and password:

username: !usernamepassword: !password

You may also log in by clicking on this link or copying and pasting it in your browser:

!login_url

This is a one-time login, so it can be used only once.

After logging in, you will be redirected to !edit_uri so you can change your password.

-- !site team

Page 6: Drupal Email Features

Welcome email1

Password recovery email

2

Administration > User management > Settings

Page 7: Drupal Email Features

System Messages Override

Override any email with code in your module:

Within the function sending the email use:drupal_mail();This sends your data to the mail function and triggers email to be sent.See http://api.drupal.org/api/function/drupal_mail/6

Also use:hook_mail($key, &$message, $params)e.g. function example_mail($key, &$message, $params) { ..... This enables you to remix the data before send out. See http://api.drupal.org/api/function/hook_mail/6

Page 8: Drupal Email Features

Email Newsletters

3rd Party Service / Software

or

Sent by Drupal

Page 9: Drupal Email Features

3rd Party Services/Software

• Inxmail http://drupal.org/project/inxmailprofessional http://www.inxmail.com

• MailChimp http://drupal.org/project/mailchimp http://mailchimp.com

• PHPList http://drupal.org/project/phplist http://www.phplist.com

Page 10: Drupal Email Features

Simple News

• Manages subscriptions to email newsletters

• Sends email newsletters

• Plain Text / HTML

• Templates

• Scheduling

• Analytics and Statistics

http://drupal.org/project/simplenews

Page 11: Drupal Email Features

Notifications + Messaging

• Subscriptions/Notification framework

• Integrates with other Drupal features such as Organic Groups

• Can also send SMS or IM

• Somewhat complex to set up

http://drupal.org/project/notificationshttp://drupal.org/project/messaging

Page 12: Drupal Email Features

eNewsletter

Main Components

• Publication

• Schedule

• Subscribed

• Templates

http://drupal.org/project/enewsletter

Page 13: Drupal Email Features

eNewsletter

• Multiple newsletters

• Plain text / HTML

• Multiple schedules (per newsletter)

• Automatically include site content based on taxonomy

• Personalisation

Page 14: Drupal Email Features

eNewsletter• Templates can use Drupal input formats, including PHP

• Email link authentication

• Forwarding HTML email feature

• Integration with User Import

Coming soon for Drupal 6!

http://drupal.org/project/enewsletter

Page 15: Drupal Email Features

New Posts Notification Modules

• Subscriptions Subscribe to nodes or taxonomies, and comments

http://drupal.org/project/subscriptions

Page 16: Drupal Email Features

Notification of New

Comments

• Comment Notify Sends notification emails about new

comments to users who have commented

on the same node

http://drupal.org/project/comment_notify

Page 17: Drupal Email Features

Forward To Friend Modules• Send Adds “tell a friend” functionality to any node

http://drupal.org/node/37480

• Add To Any Add posts to social networks and forward post to

other people via the user’s own email client

http://drupal.org/project/addtoany

Page 18: Drupal Email Features

Post Content Via Email

• Listhandler Monitor a mailbox for incoming email and post

that to a specified forum. Any posts to the

forum will conversely be posted to the mailing list.

http://drupal.org/project/listhandler

• Mail to OG Post content from email received into Organic

Groups

http://drupal.org/project/mail2og


Top Related