Back to Top

How To Send Email in MODx

As I explained in my last article that we have to do some customization in Modx Revolution default functionality as per our requirement.

so to send mail in Modx Revolution externally, we have to add a piece of code.

By default, Modx Revolution uses a PhpMailer (modPHPMailer) to send a mail.and you can use it to send mail from any file or any external file of the Modx.

modPHPMailer is a class which extends the modMail class to provide an implementation for the open source PHPMailer class.and modMail is an abstract class so it can be extended to provide mail services for Modx Revolution

Some more articles for Modx:

Import Users in MODx
Logged in User in Modx
To setup other Resource as Homepage in Modx

Here,please have a look into the following code:

That’s it.The $scriptProperties is an array which contain properties for the snippet.Here,getService return a named service class instance like get the modPHPMailer service.

I hope this post will help you. Don’t Forget to Follow us on Twitter or Subscribe us to Get the Latest Updates.

Comments (3)

  1. […] few days, I have explained To send mail in modx and Execute Custom Query IN MODx and Today I am going to explain how to import users by external […]

  2. […] few days, I have explained To send mail in modx and Execute Custom Query IN MODx and Today I am going to explain how to import users by external […]

  3. […] few days, I have explained To send mail in modx and Execute Custom Query IN MODx and Today I am going to explain how to import users by external […]

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Most Popular Posts

The Readers’ Poll – July 2013

Posted on 11 years ago

Bhumi

ECMAScript 6 New Features – 2

Posted on 6 years ago

Bhumi

Getting started with Laravel

Posted on 7 years ago

Bhumi

Learn Responsive Web Design Online

Posted on 11 years ago

Bhumi

How to Export data using YUI DataTable

Posted on 9 years ago

Bhumi