Configuring email

Table of contents
No headers

This feature is a part of the December 2007 Deki Wiki 1.8.3 release.

Deki Wiki utilizes PHPMailer to handle its emailling. The application is installed in the phpmailer folder, but can be configured by modifying these values in your LocalSettings.php:

//anonymous SMTP server
$wgSMTPServers = 'mail.server.com';

//authenticate SMTP server
$wgSMTPServers = 'mail.server.com';
$wgSMTPUser = 'login';
$wgSMTPPwd = 'password';

//$wgSMTPServers var may contain several server names or ips like this
$wgSMTPServers = "smtp1.example.com;smtp2.example.com";

PHPMailer is instantiated in includes/UserMailer.php if you'd like to add in more PHPMailer-specific configuration values.

 

Tag page
Viewing 3 of 3 comments: view all
Which is the preferred method, to edit the "LocalSettings.php" file as suggested above or to add the following name / value pairs via the "Control Panel | Configuration" thus:

* admin/email
* mail/smtp-servers
* mail/smtp-username
* mail/smtp-password

according to :
http://wiki.opengarden.org/Deki_Wiki/Configuration

For the record, I have tried both, separately and concurrently, and still cannot send emails when I "add" a new user.

Maybe I am not supplying the correct values? I am using:

* admin/email --> smtp.maildomain.net
* mail/smtp-servers --> smtp.maildomain.net
* mail/smtp-username --> deki@maildomain.net
* mail/smtp-password --> somepassword

No quotes on any of the values. I have validated that I can connect and send email using this account from an email client. I have validated that the domain "smtp.maildomain.net" (an example domain, btw) can resolve using DIG. I am running the Hayes VM updated as of 12-12-2007. I have run the EXIM configuration per:

http://wiki.opengarden.org/Deki_Wiki/FAQ/Configuration/How_do_I...Configure_email_alerts%3f

...and have accepted apparently all of the default values as that is what the screenshots indicate.

Any guidance would be appreciated.
Posted 18:07, 16 Dec 2007
Yeah I completely lost too. I went to LocalSettings.php in my Deki-Wiki VM, and I see no lines mail configuration
Posted 17:08, 14 Mar 2008
Hello all,

I just tried both solutions and you know what? Both are correct (if you enter valid parameters)
First, I have directly modified the file /var/www/deki-hayes/LocalSettings.php, with addition of the following 3 lines :
$wgSMTPServers = 'smtp.free.fr'; --> # This is my french SMTP provider
$wgSMTPUser = 'firstname.bizzz'; --> # This my email user account
$wgSMTPPwd = 'secret'; --> # This is my email password
Before doing this no email was sent by my wiki. After this, emails are correctly sent

I have also tried the second possibility, with creation of corresponding keys into Control Panel-Configuration menu (only for wiki >= 1.8.3)
I first deleted lines added into LocalSettings.php in my first test ;-)
Then I have created the 3 following keys with their associated values :
mail/smtp-servers --> smtp.free.fr
mail/smtp-username --> firstname.bizz
mail/smtp-password --> secret

I rebooted my wiki to be sure no old configuration still exist. And one more time my wiki was able to send emails
So I suggest you verify values used for those parameters
(For russ: admin/email is not name of a smtp server but the email address of an admin user, victor.hugo@france.net for example :-)) edited 09:09, 1 Apr 2008
Posted 19:50, 29 Mar 2008
Viewing 3 of 3 comments: view all
You must login to post a comment.
Powered by MindTouch Deki Enterprise Edition v.8.08 RC2