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.

Share:
Share on Facebook0Share on LinkedIn0Tweet about this on TwitterShare on Google+0Buffer this pageDigg thisShare on Reddit0

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 *

Most Popular Posts

How to Use the HTML5 Full-Screen API

Posted on 5 months ago

Bhumi

Cursor in IndexedDB API HTML5

Posted on 2 years ago

Bhumi

How to use Micro Data in HTML5

Posted on 2 years ago

Bhumi

Blank Screen of WordPress Admin Panel

Posted on 5 years ago

Bhumi

Facade implementation in Laravel

Updated 3 weeks ago

Bhumi

MySQL coalesce() function

Updated 17 years ago

Bhumi

How to use JavaScript Promise API?

Updated 17 years ago

Bhumi

What are Lambdas and Closures in PHP?

Updated 17 years ago

Bhumi

The Reader’s Poll – June 2015

Posted on 2 years ago

Bhumi

The Reader’s Poll – August 2014

Posted on 3 years ago

Bhumi

The Reader’s Poll – June 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – May 2014

Posted on 3 years ago

Bhumi

The Readers’ Poll – August 2013

Posted on 4 years ago

Bhumi