Page 1 of 1

config SMTP mail

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

Re: config SMTP mail

Posted: Sat Jan 01, 2011 8:57 pm
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

Re: config SMTP mail

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

Re: config SMTP mail

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

Re: config SMTP mail

Posted: Sun Jan 02, 2011 11:10 am
by Thorsten
Hi,

you can patch this file:

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

bye
Thorsten

Re: config SMTP mail

Posted: Sun Jan 02, 2011 3:15 pm
by hans9
Hi,

thank for the patch.

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

Re: config SMTP mail

Posted: Sun Jan 02, 2011 3:18 pm
by Thorsten
Hi,

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

bye
Thorsten