Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.