Your Moodle version

Activities: Newsletter

mod_newsletter
Maintained by it's me David Bogner
This is a newsletter module for moodle. First stable release. It provides the basic features of common newsletter tools. Using it with moodle VERP bounce processing is recommended. But we will add an additional bounce processing feature that will be easier to configure.
1k
90
1
Moodle 2.4, 2.5, 2.6

Newsletter module

This is a typical newsletter module for moodle. The features are:


  • Subscription methods: Opt in, opt out, forced
  • Management of subscribed users: Cohort (un)subscription, Ajax user (un)subscription, filtering users
  • Auto generated unsubscribe link
  • Subscription of not yet registered users
  • Multiple attachments
  • Stylesheet: Attach a stylesheet and it will be converted to inline CSS (this is necessary for mail clients)
  • Report of sent issues
  • Resuming sending newsletter if there was a problem so that all recipients will get the newsletter
  • Prevent duplicate message sending
  • Issues overview with sort options: year/month/week
  • Uses moodle internal VERP bounce system, if it is configured correctly
  • Easy to use bounce processing: Just setup the mailbox for the noreply adress defined in the moodle configuration and it will automatically add bounce processing to all the newsletters

Upcoming features

  • Tracking of read newsletter issues
  • Statistics
  • Templates engine

Screenshots

Screenshot #0
Screenshot #1

Contributors

it's me
David Bogner (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • it's me
    Wed, Jun 17, 2015, 8:56 PM
    Hi Hamed,

    I tried to send newsletter now on Moodle 2.7 and 2.9 and it works perfectly. Nevertheless I uploaded a new version, because I saw that I did not check if bouncing was enabled in cron job. But sending mails worked before. Did you check the status of the users in manage subscriptions? If they are blacklisted, they won't receive any mails.

    Best,
    David
  • Picture of Hamed Azimi
    Wed, Jun 17, 2015, 9:32 PM
    Hi David,

    Thanks. Just updated. (User's subscriptions are Active.But still no email sent) Some of my module settings:
    he service to use (imap or pop3) = pop3
    The service options (none, tls, notls, ssl) = none
    The port to access your mailbox = 110 (0, 143, 995 also not worked)
    (I use SMTP). Any idea?

    Best,
    Hamed
  • Picture of Hamed Azimi
    Wed, Jun 17, 2015, 9:48 PM
    Also I changed 110 to 465 (to send using SMTP securely) but not worked. I don't know what else I should do.(All other places in my system send email without any problem. But this module doesn't. I don't know why!) Any idea? Thanks

    Best,
    Hamed
  • it's me
    Thu, Jun 18, 2015, 1:26 AM
    Hi Hamed,

    maybe there is a misunderstanding: Sending the mails is done by the smtp server defined in /settings.php?section=messagesettingemail If these settings are empty, then PHP will send it without an smtp server. The settings you described are the bounce settings for the newsletter. This should be the mailbox login data for the noreply adress which is also defined in the moodle settings /settings.php?section=messagesettingemail

    You can test if the login data are correct at the following url: http://localhost/moodle/mod/newsletter/bouncetest.php (adapt the url to your moodle site).

    I can not reproduce the problem so I would need more information. Maybe there is an issue with farsi, I will test that. You could enable Cron DEBUG mode in http://localhost/moodle/admin/settings.php?section=modsettingnewsletter and also enable smtp debugging: http://localhost/moodle/admin/settings.php?section=debugging
    But that is not recommended for production sites.

    If the a newsletter issue is marked green in the issues overview, then the newsletter won't be sent again. So you have to create a new issue if you want to test it.

    Best,
    David
  • Picture of Hamed Azimi
    Thu, Jun 18, 2015, 2:04 AM
    Hi David,

    Thanks a lot, Now its working! (I created a new noreply email account and activated it and choose it as noreply email in settings). UTF-8 problem is also solved.
    One more question:
    1.Is it possible to put some code in mail content and those code automatically be replaced with "user's name" or "user's other information" in the emails that received by users?

    Best,
    Hamed
  • it's me
    Thu, Jun 18, 2015, 2:07 AM
    Hi Hamed,

    yes that is on our feature list. But I am on holiday the next 2 weeks. So I think it will be ready in about 3 weeks time.

    Best,
    David
  • Picture of Hamed Azimi
    Thu, Jun 18, 2015, 2:13 AM
    Hi David,

    Thanks again for your great support. (Intensively waiting for next updates)
    (Happy Holiday! )

    Best,
    Hamed
  • Picture of Chardelle Busch
    Wed, Aug 19, 2015, 7:15 AM
    Hi David,
    Do you have any plans to be able to choose a group to send the newsletter too, similar to the news forum?
  • it's me
    Wed, Aug 19, 2015, 3:29 PM
    Hi Chardelle,

    no we do not plan that feature. You can already subscribe cohorts to a newsletter, but not course groups. Do you want to subscribe a group or do you want to have some posts to be sent to one group and other posts to another group? In second case I would recommend to use 2 separate newsletter instances. In the first case I could put that on the wishlist.

    Best,
    David
  • Picture of Chardelle Busch
    Thu, Aug 20, 2015, 6:41 AM
    No, problem. I have a site with dozens of groups, so a newsletter for each one is unreasonable. I just added some group code similar to forums and it worked great, newsletter went only to chosen group (I added groupid to the newsletter_issues table). I will be waiting for your addition of adding user variables to the content.

    A couple of things I noticed testing this in 2.9. There are a couple of notices for deprecated code that need updated. Also, when a newsletter is added with forced, all users are added to the subscriptions with no subscription date. You really should add timesubscribed to the newsletter_subscriptions in the newsletter_add_instance function.

    Thanks for sharing!
  • Picture of bobby peru
    Sat, Aug 22, 2015, 7:51 PM
    Hi all,
    can you explain me, how to use the newsletter plugin? i installed a set it, but when i wont to send newsletter, i dont know ho to do it.
    thx!
    best bobby
  • it's me
    Wed, Aug 26, 2015, 11:35 PM
    @bobby peru: Documentation will only be available late this year. meanwhile, please just experiment with the settings. most features do not need extra explanation.
  • it's me
    Thu, Aug 27, 2015, 1:17 AM
    Hi Chardelle,

    thank you for the feedback. I did rewrite the code for auto subscription upon add_instance and update instance. Concerning groups: It would be great if you can provide the code for groups and provide it on github, then I could merge it.
    I will publish a new release in the following days.

    Kind regards,
    David
  • Picture of bobby peru
    Thu, Aug 27, 2015, 2:03 AM
    hi david, settings are not problem, but i dont know how to send newletter
  • it's me
    Thu, Aug 27, 2015, 2:04 PM
    Hi Bobby,

    to send a newsletter: create a new newsletter issue, set the publishing date and make sure cronjob https://docs.moodle.org/29/en/Cron is running. It will be sent on the publishing date.

    Best,
    David
1 2 3
Please login to post comments