Sending Custom Emails in Moodle Using the email_to_user() Function

You can send custom emails from within Moodle using PHP using your own forms using the email_to_user() function. By the way, did you know that Moodle actually uses the open source PHPMailer behind the scenes? A typical call to Moodle’s email_to_user() function would look like: email_to_user($toUser, $fromUser, $subject, $messageText, $messageHtml, ”, ”, true); This is a very simple version of a very powerful function. For more information about the email_to_user() function, take a look at the source code for function email_to_user in Moodle’s /lib/moodlelib.php. If you wanted to also include an attachment, you would need to also specify the path to the file to attach … Continue reading

Building Your Mailing List by Offering Free Downloads in WordPress

Offering a free eBook or other digital download on your website is a great way to build your email mailing list which you can then use for any number of business building purposes. Here are a few ways you can do this using Wordpress. Some of the things you will want to watch out for include preventing people from: Using a fake email address; and Sharing direct links to your freebee with the world. IMPORTANT: If you are going to add people to a mailing list when they sign-up to download your book or free chapter, you must comply with the U.S. CAN-SPAM law. An even … Continue reading

Promote Your Church Using Social Media – Facebook, Twitter, QR Codes, Email, SMS

The church is one of the most socially connecting groups of people in the world. They meet each week, sometimes even twice a week and are connected through all forms of social connections such as email, telephone, mail, social networks, gathering, study groups and more. It is just natural that Social Media and the church sounds like a match made in heaven. However, the truth is that churches need to start taking risks and using tools such as Facebook, Blogs, and Twitter to establish connection points with the people they want to reach or help.  Just don’t let it take … Continue reading