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 *

Most Popular Posts

Warning: Ignoring WordPress Can Be a Blunder

Posted on 5 years ago

Nick Carter

What is Type Hinting in PHP5

Posted on 6 years ago

Bhumi

How to use ezSQL with example

Posted on 2 years ago

Bhumi

Getting started with Amazon Web Services

Updated 18 years ago

Bhumi

Facade implementation in Laravel

Updated 18 years ago

Bhumi

Branching and Merging in Git

Updated 1 week 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