Forums | Mahara Community

Support /
Using Smtp instead of mail() in Mahara 1.1.5


anonymous profile picture
Account deleted
Posts: 105

15 July 2009, 5:47

Hi guys,

 

is it still possible to configure mahara to use smtp instead of mail()? The config-defaults file isn't in the root directory but in /lib/ for some reason. If I try adding the lines 

$cfg->smtphosts = 'mail.a.com;mail.b.com';
$cfg->smtpuser = '';
$cfg->smtppass = '';

 

I get the following error

[15-Jul-2009 12:36:08] PHP Parse error:  syntax error, unexpected T_VARIABLE in /data/web/social/web/social/mahara/config.php on line 83

 

Regards Alex

anonymous profile picture
Account deleted
Posts: 105

15 July 2009, 6:22

Ok finally got it working.

The error was cause because I had set

$cfg->noreplyaddress = '[email protected]'

This is not possible if you want to use smtp! Unfortunately the "sender" now looks very weird.

Is it possible to set the email from field somehowe without using  $cfg->noreplyaddress?

 

 

anonymous profile picture
Account deleted
Posts: 1643

16 July 2009, 2:39

Um, actually that line looks broken because you didn't finish it with a semi-colon. If you add that, it should work fine?
anonymous profile picture
Account deleted
Posts: 105

18 July 2009, 5:48

Unbelievable and I am teaching Java :(

Shame on me. Sorry for wasting your time!

4 results