ok, got php 5, now whats this..?

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
lukemaxpro
Forum Newbie
Posts: 17
Joined: Sat Jul 28, 2007 1:52 am

ok, got php 5, now whats this..?

Post 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...
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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?
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.
User avatar
superdezign
DevNet Master
Posts: 4135
Joined: Sat Jan 20, 2007 11:06 pm

Post by superdezign »

Are you sure you're even connecting to a valid server?
lukemaxpro
Forum Newbie
Posts: 17
Joined: Sat Jul 28, 2007 1:52 am

Editing the configuration file

Post 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";
}
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
lukemaxpro
Forum Newbie
Posts: 17
Joined: Sat Jul 28, 2007 1:52 am

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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.
Post Reply