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...
ok, got php 5, now whats this..?
Moderator: General Moderators
-
lukemaxpro
- Forum Newbie
- Posts: 17
- Joined: Sat Jul 28, 2007 1:52 am
It means this:
Should you be using sendmail instead?
Can you connect to your smtp server? Through port 25?SMTP Error: Could not connect to SMTP host.
Should you be using sendmail instead?
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- superdezign
- DevNet Master
- Posts: 4135
- Joined: Sat Jan 20, 2007 11:06 pm
-
lukemaxpro
- Forum Newbie
- Posts: 17
- Joined: Sat Jul 28, 2007 1:52 am
Editing the configuration file
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";
}Your server is unable to resolve the name smtp.lvasp.comWarning: 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
-
lukemaxpro
- Forum Newbie
- Posts: 17
- Joined: Sat Jul 28, 2007 1:52 am
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
http://lvasp.com/requestformtest.php
Fill out the 2 required fields and you'll see what error I'm getting.
Thanks
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.The SMTP connection failed to start [mail.lvasp.com:25]: fsockopen returned Error Number 110 and Error String 'Connection timed out''