Page 1 of 1
ok, got php 5, now whats this..?
Posted: Sat Aug 11, 2007 5:40 pm
by lukemaxpro
I uploaded all files to a swiftmailer directory on the server, but what does this error mean?
http://www.lvasp.com/mail_test.php
Thanks...
Posted: Sat Aug 11, 2007 6:27 pm
by s.dot
It means this:
SMTP Error: Could not connect to SMTP host.
Can you connect to your smtp server? Through port 25?
Should you be using sendmail instead?
Posted: Sat Aug 11, 2007 8:32 pm
by superdezign
Are you sure you're even connecting to a valid server?
Editing the configuration file
Posted: Sun Aug 12, 2007 6:21 pm
by lukemaxpro
How do I double check these values with my host
Code: Select all
<?php
define("TEST_CONFIG_PATH", dirname(__FILE__));
define("DEFAULT_WRITABLE_PATH", TEST_CONFIG_PATH . "/tmp");
define("DEFAULT_LIBRARY_PATH", TEST_CONFIG_PATH . "/../lib");
/**
* Adjust the values contained inside this class in order to run the tests
* NOTE: SimpleTest is NOT provided with Swift. You must download this from SouceForge yourself.
* Paths given should be either relative to the "tests/units" directory or absolute.
* @package Swift_Tests
* @author Chris Corbyn <chris@w3style.co.uk>
*/
class TestConfiguration
{
/**
* Somewhere to write to when testing disk cache
*/
const WRITABLE_PATH = DEFAULT_WRITABLE_PATH;
/**
* The location of SimpleTest (Unit Test Tool)
*/
const SIMPLETEST_PATH = "/Users/d11wtq/simpletest";
/**
* The location of the Swift library directory
*/
const SWIFT_LIBRARY_PATH = DEFAULT_LIBRARY_PATH;
/*
* EVERYTHING BELOW IS FOR SMOKE TESTING ONLY
*/
/**
* The connection tye to use in testing
* "smtp", "sendmail" or "nativemail"
*/
const CONNECTION_TYPE = "smtp";
/**
* An address to send emails from
*/
const FROM_ADDRESS = "support@lvasp.com";
/**
* The name of the sender
*/
const FROM_NAME = "Admin. - from";
/**
* An address to send emails to
*/
const TO_ADDRESS = "support@lvasp.com";
/**
* The name of the recipient
*/
const TO_NAME = "Admin. - to";
/*
* SMTP SETTINGS - IF APPLICABLE
*/
/**
* The FQDN of the host
*/
const SMTP_HOST = "smtp.lvasp.com";
/**
* The remote port of the SMTP server
*/
const SMTP_PORT = 25;
/**
* Encryption to use if any
* "ssl", "tls" or false
*/
const SMTP_ENCRYPTION = false;
/**
* A username for SMTP, if any
*/
const SMTP_USER = false;
/**
* Password for SMTP, if any
*/
const SMTP_PASS = false;
/*
* SENDMAIL BINARY SETTINGS - IF APPLICABLE
*/
/**
* The path to sendmail, including the -bs options
*/
const SENDMAIL_PATH = "/usr/sbin/sendmail -bs";
}
Posted: Sun Aug 12, 2007 8:23 pm
by volka
Warning: fsockopen() [function.fsockopen]: php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/luke/public_html/class.smtp.php on line 105
Warning: fsockopen() [function.fsockopen]: unable to connect to smtp.lvasp.com:25 (Unknown error) in /home/luke/public_html/class.smtp.php on line 105
Your server is unable to resolve the name smtp.lvasp.com
Posted: Tue Aug 14, 2007 11:31 am
by lukemaxpro
Alas I'm still struggling with swiftmailer I used the online example and tried to hook my (test) form up to it.
http://lvasp.com/requestformtest.php
Fill out the 2 required fields and you'll see what error I'm getting.
Thanks
Posted: Tue Aug 14, 2007 12:07 pm
by volka
The SMTP connection failed to start [mail.lvasp.com:25]: fsockopen returned Error Number 110 and Error String 'Connection timed out''
The connection to the smtp server wasn't actively rejected but it wasn't accepted within the given time limit either. E.g. a firewall that silently drops packets can cause this.