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 Facebook1

Share 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 Export data using YUI DataTable

Posted on 2 years ago

Bhumi

To prevent caching in web browser

Posted on 5 years ago

Bhumi

How to add Google Analytic code in Typo3

Posted on 4 years ago

Bhumi

An Introduction To NoSQL and MongoDB

Posted on 5 years ago

Bhumi

Really! PHP touches the 200 Million Mark

Posted on 4 years ago

John Pitt

An Introduction to Gulp JS

Updated 1 month ago

Bhumi

Getting started with Laravel

Updated 1 month ago

Bhumi

How to use Git init command

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