Hello,
I've been playing around with PHPMailer all day with no success, so I thought I'd give a hopeful attempt to the acclaimed "swift mailer", but I'm not succeeding much either. Because my ISP (Qwest), doesn't have an smtp relay, I'm forced to send mail through another avenue (i.e. smtp.gmail.com or using the same mail that I use to send personal mail out through Outlook connected to gmail). So here's the error I'm getting when running swift/tests/smokes/runTestOfBasicSend.php:
Error: The SMTP connection failed to start [tls://smtp.gmail.com:587]: fsockopen returned Error Number 0 and Error String ''
The server firewall is disabled and I can currently send mail through Outlook/gmail, so it shouldn't be a firewall issue.
Here's the settings for the TestConfiguration.php:
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/PHPLibs/simpletest";
/**
* The location of the Swift library directory
*/
const SWIFT_LIBRARY_PATH = DEFAULT_LIBRARY_PATH;
/**
* The location of some files used in testing.
*/
const FILES_PATH = FILES_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 = "braindon@gmail.com";
/**
* The name of the sender
*/
const FROM_NAME = "Brandon Hawbaker";
/**
* An address to send emails to
*/
const TO_ADDRESS = "braindon@hotmail.com";
/**
* The name of the recipient
*/
const TO_NAME = "Brandon Hawbaker";
/*
* SMTP SETTINGS - IF APPLICABLE
*/
/**
* The FQDN of the host
*/
const SMTP_HOST = "smtp.gmail.com";
/**
* The remote port of the SMTP server
*/
const SMTP_PORT = 587;
/**
* Encryption to use if any
* "ssl", "tls" or false
*/
const SMTP_ENCRYPTION = tls;
/**
* A username for SMTP, if any
*/
const SMTP_USER = braindon;
/**
* Password for SMTP, if any
*/
const SMTP_PASS = ********;
/*
* SENDMAIL BINARY SETTINGS - IF APPLICABLE
*/
/**
* The path to sendmail, including the -bs options
*/
const SENDMAIL_PATH = "/usr/sbin/sendmail -bs";
}
I would be most certainly grateful for help if you can help.
Regards,
Brandon
PHP5 Gmail Apache2 TLS 587 Socket error
Moderators: Chris Corbyn, General Moderators
Re: PHP5 Gmail Apache2 TLS 587 Socket error
I should also mention that my php.ini (located in apache2/bin) is as follows:
extension=php_mysqli.dll
;extension=php_oci8.dll
extension=php_openssl.dll
;extension=php_pdo.dll
So I'm assuming this should mean that php can connect through these ports.
Also, libeay32.dll is in apache2/bin as well as c:\windows\system32
extension=php_mysqli.dll
;extension=php_oci8.dll
extension=php_openssl.dll
;extension=php_pdo.dll
So I'm assuming this should mean that php can connect through these ports.
Also, libeay32.dll is in apache2/bin as well as c:\windows\system32