config SMTP mail

All about webserver configurations, PHP and databases.

Moderator: Thorsten

Post Reply
hans9
Posts: 16
Joined: Sat Jan 01, 2011 6:49 pm

config SMTP mail

Post by hans9 »

Hi,

Just installed PHPMyFAQ. It works. :)
But It ought to be possible to send mail to the users. So I want to use the SMTP server of my ISP provider using i.e. smtp.xyz.com

How to configure this?

Thanks.

Hans.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: config SMTP mail

Post by Thorsten »

Hi,

you can do this directly in your PHP settings, currently not in phpMyFAQ. phpMyFAQ uses the plain PHP mail() function.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hans9
Posts: 16
Joined: Sat Jan 01, 2011 6:49 pm

Re: config SMTP mail

Post by hans9 »

Thanks,

PHP PEAR was missing.

I've installed this but what/where to put the SMTP and authentication data?

I've found some examples explaining how to write my own PHP scripts with mail() but none about where to put what in combination with i.e. phpMyFAQ?
hans9
Posts: 16
Joined: Sat Jan 01, 2011 6:49 pm

Re: config SMTP mail

Post by hans9 »

Hi,

What should be filled inin the php.ini file?

found in /usr/share/php/mail.php and smtp.php also the authentication settings. But that didn't solve the problem.

any suggestions?
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: config SMTP mail

Post by Thorsten »

Hi,

you can patch this file:

https://github.com/thorsten/phpMyFAQ/bl ... uiltin.php

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
hans9
Posts: 16
Joined: Sat Jan 01, 2011 6:49 pm

Re: config SMTP mail

Post by hans9 »

Hi,

thank for the patch.

I've installed sendmail. Don't know why but I can send myself a (pasword) mail.
Thorsten
Posts: 15560
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: config SMTP mail

Post by Thorsten »

Hi,

if you have sendmail everything should work out of the box. PHP's mail() function uses sendmail by default.

bye
Thorsten
phpMyFAQ Maintainer and Lead Developer
amazon.de Wishlist
Post Reply