Simple Machines Community Forum

SMF Support => SMF 1.1.x Support => Aiheen aloitti: eyvind - maaliskuu 20, 2005, 10:20:59 IP

Otsikko: Sending E-mails from SMF
Kirjoitti: eyvind - maaliskuu 20, 2005, 10:20:59 IP
I am having trouble sending e-mails from SMF (I am forced to use Immediate registration), I ahve tried both sendmail and SMTP. The path to my sendmail is '/usr/sbin/sendmail -t -f ftpusername', and I know the correct SMTP settings. What could be wrong, how does SMF know where sendmail is?

Can any of you help me?
Otsikko: Re: Sending E-mails from SMF
Kirjoitti: [Unknown] - maaliskuu 20, 2005, 10:29:23 IP
It uses PHP.  Try adding this to your Settings.php file just *before* the ?>:

ini_set('sendmail_path', '/usr/sbin/sendmail -t -f ftpusername');
ini_set('sendmail_from', '[email protected]');

-[Unknown]