Jump to content

Mailing List / using class.phpmailer.php


pedromau

Recommended Posts

Hello people!

I'm pretty new to php language... I'm using some software for a mailing list, and it have some online form so people can subscribe/unsubcribe...

All the software runs fine... except the online form... I can't get it to work... All SMTP configurations are fine so I don't know what can be wrong...

 

Here's the error I get when submiting to subscribe.php

 

Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: hostname nor servname provided, or not known in /mnt/w0300/d33/s30/b02782d4/www/moreagency/form/class.smtp.php on line 37

 

Warning: fsockopen() [function.fsockopen]: unable to connect to :25 (Unknown error) in /mnt/w0300/d33/s30/b02782d4/www/moreagency/form/class.smtp.php on line 37

SMTP Error: Could not connect to SMTP host.

 

(it uses some "preferences.ini" to get the variables.. and I guess all is correct there...)

 

Here's the start of class.phpmailer.php (default)

 

class PHPMailer

{

var $Priority = 3;

var $CharSet = "iso-8859-1";

var $ContentType = "text/plain";

var $Encoding = "8bit";

var $ErrorInfo = "";

var $From = "root@localhost";

var $FromName = "Root User";

var $Sender = "";

var $Subject = "";

var $Body = "";

var $AltBody = "";

var $WordWrap = 0;

var $Mailer = "mail";

var $Sendmail = "/usr/sbin/sendmail";

var $PluginDir = "";

var $Version = "1.73";

var $ConfirmReadingTo        = "";

var $Hostname = "";

var $Host = "localhost";

var $Port = 25;

var $Helo = "";

var $SMTPAuth = false;

var $Username = "";

var $Password = "";

var $Timeout = 30;

var $SMTPDebug = false;

var $SMTPKeepAlive = false;

 

(...)

 

Can someone tell me what can be wrong?!

 

Thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/55570-mailing-list-using-classphpmailerphp/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.