Trouble setting up smtp

Once you've installed phpList Version 2... ask questions here!
Forum rules
Please help the volunteers to help you by supplying the version of phpList you are using, browser & version and if possible, a link to your phpList installation. This is for Version 2 of phpList (the orange one).

Trouble setting up smtp

Postby devin178 » 9:31pm, Fri 16 Aug, 2013

I fill in all the information in the host, username, and password. Every time i send a test message i get Sent test mail to: name@domain.com failed.

Code: Select all
# To use a SMTP please give your server hostname here, leave it blank to use the standard
# PHP mail() command.
define("PHPMAILERHOST",server');

# if you want to use smtp authentication when sending the email uncomment the following
# two lines and set the username and password to be the correct ones
$phpmailer_smtpuser = 'name@domain.com';
$phpmailer_smtppassword = 'password';


i also change the port to 587 in lists/admin/phpmailer/class.smtp.php and lists/admin/phpmailer/class.phpmailer.php.

Code: Select all
class SMTP
{
    /**
     *  SMTP server port
     *  @var int
     */
    var $SMTP_PORT = 587;


Code: Select all
 /**
     *  Sets the default SMTP server port.
     *  @var int
     */
    var $Port        = 587;


and i still get the error. I really appreciate if anyone can help me. Thank you
devin178
phpLister
 
Posts: 11
Joined: 9:23pm, Fri 16 Aug, 2013

Re: Trouble setting up smtp

Postby duncanc » 10:46am, Sat 17 Aug, 2013

If you are using phplist 3.0.0. then no need to make those code changes as there is a port setting in config.php

Code: Select all
# define('PHPMAILERPORT',25);


and you probably need to enable the SSL setting

Code: Select all
define("PHPMAILER_SECURE",'ssl');


Take a close look at all of the settings in the config.php file.

Otherwise if you are still using phplist 2.10.x then it doesn't support secure smtp, so I suggest upgrading.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London

Re: Trouble setting up smtp

Postby devin178 » 1:57pm, Sat 17 Aug, 2013

I did a clean update to version 3.0, and i did what you said changing the setting in config but im still getting the same error Sent test mail to: name@domain.com failed

Also the domain I'm using is not the same as my hosting domain. Idk if that has anything to do with it
devin178
phpLister
 
Posts: 11
Joined: 9:23pm, Fri 16 Aug, 2013

Re: Trouble setting up smtp

Postby superiordesign » 1:45am, Wed 21 Aug, 2013

I'm experiencing the same problem. I also tried chaning the configuration to use my ISP's sendmail mailing program but it only displays the script code when I try to send my password (for example) as I can't even log in to the admin page.
superiordesign
phpList newbie
 
Posts: 1
Joined: 1:40am, Wed 21 Aug, 2013

Re: Trouble setting up smtp

Postby devin178 » 7:53pm, Thu 22 Aug, 2013

I even upgrade it to version 3.0, it still not working. my phplist is hosted on domain1.com and the email address I'm using to send is on domain2.com. I have the correct smtp set up, i don't see the problem why it would not send and keep getting the Sent test mail to: example@example.com FAILED.

Is there something i need to modified on Phplist, or theres an problem with my email address. BTW I set up my email address using different mail client using the same smtp and never got a problem.
devin178
phpLister
 
Posts: 11
Joined: 9:23pm, Fri 16 Aug, 2013

Re: Trouble setting up smtp

Postby duncanc » 9:50pm, Thu 22 Aug, 2013

You can try enabling debug to get more information.

In file admin/sendemaillib.php find this line. It is line 707 in the file for phplist 3.0.0
Code: Select all
  $mail = new PHPlistMailer($messageid,$destinationemail);

Then add this line immediately after
Code: Select all
  $mail->SMTPDebug = 2;

When you send a test message there will be some output on the screen that hopefully will explain the problem.
duncanc
Moderator
 
Posts: 2440
Joined: 6:34am, Sat 08 May, 2010
Location: London


Return to Question & Problems - after installing

Who is online

Users browsing this forum: Google [Bot] and 1 guest