Support ⇒ Explain Please ⇒ How to send emails using php mailer? ⇒ Community Forums ⇒ CPG Dragonfly™ CMS
Forum IndexExplain Please

How to send emails using php mailer? Reply to topic


I have a dedicated box located in an IDC in my city.

I have set up a mail server to send emails to the users on my site. But I've been wondering how to send mails using php mailer.

Cheers,

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1


You mean example PHP code?

modules/News/friend.php

Don't know if it is especially good code, but it's a short module, and send mail is all it does, so a simple example to learn from because of that.

Or use Newsletter or NewsletterPro from Downloads.

Pro_News CM™ - Content Management for Dragonfly CMS™

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Linux / 1.3.39 - 2.4.9 / 5.5.42 - 5.6.16 / 5.4.37 - 5.5.11 / 9.4


What I mean is I'm unable to understand how it is able to send emails to users without giving dragonfly my mail account and password. There isn't a page on my website that lets me enter my mail accounts. I'm wondering how dragonfly is able to send emails out of box, without any configuration.

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1


You can enter your mail server settings in Admin -> Main Settings -> Mail.

If you don't do this it will use PHP's mail() function and I believe it will use the email address you entered for the Admin account when you installed DF as the "from" address.

Gaming League / Cup - www.leaguecms.co.uk :: Other DragonFly modules - www.cmsdreams.co.uk

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):


SMTP software is mostly configured to allow sending emails from the computer itself and disallows sending from a remote computer.

To allow sending sending from a remote computer mostly you setup a login.

That's why you must login and the script doesn't

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
Fedora 25 / Apache 2.4.27 / MariaDB 10.1.26 / PHP 7.1.10 / Mercurial


Now you have made it clear enough for me. Thanks. Smile

Server specs (Server OS / Apache / MySQL / PHP / DragonflyCMS):
2003 / 2.4.3/ 5.5.27/ 5.4.7 / 9.3.4.1

All times are UTC


Jump to: