Configure Jomres to use SMTP
This article is now obsolete, as there is now an option in Site Configuration -> Mail settings where you can make these changes programatically.
Occasionally you might have problems with Jomres not sending emails, if so, you can set Jomres to use SMTP for sending emails, instead of the default mail function. Here is what you have to do:
In \jomres\libraries\PHPMailer_v5.1\class.phpmailer.php, find the following lines and edit them as below:
public $Mailer = 'mail'; (change 'mail' to 'smtp')
public $Host = 'localhost'; (change this to your smtp mail server)
public $Port = 25; (change this to your smtp port)
public $SMTPSecure = ; (depending on your smtp server settings, you need to leave this as is, or enter 'ssl' or 'tls'. Ask your hosting provider if you don`t know something about your smtp server)
public $SMTPAuth = false; (if your smtp server requires login, change this to 'true')
public $Username = ; (enter your smtp username)
public $Password = ; (your smtp password)
in \jomres\libraries\PHPMailer_v5.1\class.smtp.php, you just need to edit the smtp port:
public $SMTP_PORT = 25; (change this to your smtp port)