-
☆ A M B ☆
- 1,231 Posts
Hello,
I have a email script that works just fine but I have to use it on a site which uses an external email system. The mailer won’t send because of this and wondered if anyone knows how to send php mail from a server that uses an external mail system?
All that I am doing is sending data to the database and emailing the user who filled in a form.
Any ideas would be great.
-
☆ A M B ☆
- 24,524 Posts
You can either get your own email library (there are a few good ones, SwiftMailer and PHPMailer come to mind) or you can use the phpmailer library in manager/includes/controls/, although that’s rather elderly now. Both libraries have good documentation on using them for SMTP mailing.
http://swiftmailer.org/
http://swiftmailer.org/docs/smtp-transport
http://phpmailer.worxware.com/
http://phpmailer.worxware.com/index.php?pg=examplebsmtp
-
☆ A M B ☆
- 1,231 Posts
Thanks Susan, I do usually use the includes mailer class in modx. If that’s an older version would it be safe to update it with the latest phpmailer or are something reliant on that specific version?
-
☆ A M B ☆
- 24,524 Posts
As far as I know, it shouldn’t make a bit of difference. One thing to watch for, though, is your PHP version; the later versions of the mailing libraries require PHP 5 or better.
-
MODX Staff
- 730 Posts
Thanks, this discussion has prompted me to file a ticket.
http://bugs.modx.com/issues/3870
Please feel free to discuss, question, heckle in the bugtracker as needed.
-
☆ A M B ☆
- 1,231 Posts