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 » Sat Jan 01, 2011 7:45 pm

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: 14702
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: config SMTP mail

Post by Thorsten » Sat Jan 01, 2011 8:57 pm

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 » Sat Jan 01, 2011 11:01 pm

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 » Sun Jan 02, 2011 5:41 am

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: 14702
Joined: Tue Sep 25, 2001 11:14 am
Location: #phpmyfaq
Contact:

Re: config SMTP mail

Post by Thorsten » Sun Jan 02, 2011 11:10 am

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 » Sun Jan 02, 2011 3:15 pm

Hi,

thank for the patch.

I've installed sendmail. Don't know why but I can send myself a (pasword) mail.

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

Re: config SMTP mail

Post by Thorsten » Sun Jan 02, 2011 3:18 pm

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