Register / Login

 StringTwo Forum
Welcome Guest   [Register]  [Login]
 Subject :SMTP host with port.. 2009-08-12 09:43:25 Wednesday 
toreym
Joined: 2009-08-10 09:23:21 Monday
Posts: 3
Location

I am trying to connect to an SMTP server on a port other than the default.  here is what I am trying but no luck...the page just hangs. Has anyone else been able to do this?

$conf['smtp_host'] = "smtp.gmail.com:465";

Specifically if you have used google apps (gmail) for smtp what did you do?

 

Thanks!

IP Logged
 Subject :Re:SMTP host with port.. 2009-08-12 09:36:36 Wednesday 
brendanc
Joined: 2009-07-02 09:26:15 Thursday
Posts: 38
Location
 

Hi toreym,

You can change the port the script uses by editing the "var $Port" variable on line 162 of the /phpmailer/class.phpmailer.php file that is within the s2_form_highrise package.

There is also a "var $SMTP_PORT" variable on line 30 in the /phpmailer/class.smtp.php variable file, but I'd try the one I mentioned first, first.

I'll check with Kyle (our developer) to see if we can add a port option straight to the config file.

Thanks for the question!

IP Logged
 Subject :Re:SMTP host with port.. 2009-08-20 09:18:38 Thursday 
darmitage
Joined: 2009-08-18 09:04:00 Tuesday
Posts: 5
Location

I am also having a problem with SMTP.  We use gmail to host our SMTP, and there may be some issue with authentication. 

This link has lots of detail about their server config.  http://mail.google.com/support/bin/answer.py?hl=en&answer=78775

Any hints?

 

Thanks

IP Logged
 Subject :Re:SMTP host with port.. 2009-08-20 09:44:02 Thursday 
brendanc
Joined: 2009-07-02 09:26:15 Thursday
Posts: 38
Location
 

Putting this as your mail host may do the trick:

ssl://smtp.gmail.com:465

I'm looking to see if we can simply add SSL and Port numbers as configurable options.

-Brendan

IP Logged
 Subject :Re:SMTP host with port.. 2009-08-20 09:56:30 Thursday 
darmitage
Joined: 2009-08-18 09:04:00 Tuesday
Posts: 5
Location

Before I start mucking around with class.smtp.php I thought I'd share the following:

 

Warning: fsockopen() expects parameter 2 to be long, string given in /home/content/d/a/r/darmitage/html/s2_form_highrise/phpmailer/class.smtp.php on line 105

SMTP Mail Settings

Your SMTP settings are as follows:

SMTP Host: ssl://smtp.gmail.com
SMTP Use Authenication: Yes
SMTP User: myaccount@gmail.com
SMTP Password: Omitted for security reasons.

Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host.

IP Logged
 Subject :Re:SMTP host with port.. 2009-08-20 09:42:43 Thursday 
kyleh
Joined: 2009-07-02 09:29:15 Thursday
Posts: 14
Location
 
I am currently testing an updated version that allows for easy gmail configuration.  Keep in mind that Google policy does not allow "third party software that automatically logs in to your account". Click here for more info.
IP Logged
 Subject :Re:SMTP host with port.. 2009-08-20 09:36:40 Thursday 
kyleh
Joined: 2009-07-02 09:29:15 Thursday
Posts: 14
Location
 
I added a SMTP gmail patch in the Highrise downloads section.  Just follow download the files and follow the update instructions (3 easy steps) and you should be good to go.
IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:24:22 Tuesday 
sportsmissions
Joined: 2009-12-07 09:11:08 Monday
Posts: 7
Location

I am using google apps for email, and am getting the following error message on the config_test.php.  Any idea why it would not connect?  I added in the gmail patch that was avaialble as well as the upgrade patch.

 

Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) in /home/sportsn7/public_html/s2_form_highrise/phpmailer/class.smtp.php on line 105 SMTP

Mail Settings

Your SMTP settings are as follows:
SMTP Host: ssl://smtp.gmail.com
SMTP Use Authenication: Yes
SMTP User: michael@threestream.com
SMTP Password: Omitted for security reasons.

Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host.

IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:18:23 Tuesday 
kyleh
Joined: 2009-07-02 09:29:15 Thursday
Posts: 14
Location
 
It looks like you are trying to authenicate a gmail account with an email address other than gmail.  Try using your gmail address as the SMTP User.
IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:50:34 Tuesday 
sportsmissions
Joined: 2009-12-07 09:11:08 Monday
Posts: 7
Location

Will this not work with Google Apps?  I assumed it would because it is still google mail.  With google apps I will not have an email that ends in @gmail.com.  It will look like something@somedomainIown.com.

IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:03:50 Tuesday 
kyleh
Joined: 2009-07-02 09:29:15 Thursday
Posts: 14
Location
 

Haven't tested with google apps yet but I would guess using google apps with a custom subdomain is a bit different from using straight gmail.   Is that the same SMTP host (smtp.gmail.com) that you would use for a local mail client?  I suspect it may be different.  It looks like the authenication process is timing out - it is unable to connect to smtp.gmail.com.

Can you check the process for setting up a local mail client and try using the same settings?

IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:18:48 Tuesday 
sportsmissions
Joined: 2009-12-07 09:11:08 Monday
Posts: 7
Location

Google Apps requires using 587 for the smtp port, and also requires TLS instead of ssl for they connection encryption type. I changed these seeting in my config.php file, but it did not work.  I still cannot connect to SMTP host.

 

Any other ideas?

IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:29:41 Tuesday 
kyleh
Joined: 2009-07-02 09:29:15 Thursday
Posts: 14
Location
 
I'll have to research this further.  Have you tried tls:// on port 465?
IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:43:09 Tuesday 
sportsmissions
Joined: 2009-12-07 09:11:08 Monday
Posts: 7
Location

Yes, with the same result.  I would really love to use this form, but I need it to work with Google Apps.  Thanks for your persistence.

IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:36:24 Tuesday 
kyleh
Joined: 2009-07-02 09:29:15 Thursday
Posts: 14
Location
 
I will set up a google apps account and see If I can get this working.  Thanks for your patience.
IP Logged
 Subject :Re:SMTP host with port.. 2009-12-08 09:04:05 Tuesday 
sportsmissions
Joined: 2009-12-07 09:11:08 Monday
Posts: 7
Location

Thanks for looking into this.

IP Logged
 Subject :Re:SMTP host with port.. 2009-12-09 09:22:06 Wednesday 
sportsmissions
Joined: 2009-12-07 09:11:08 Monday
Posts: 7
Location

@kyleh - were you able to get it working with google apps?

IP Logged
 Subject :Re:SMTP host with port.. 2009-12-09 09:44:17 Wednesday 
brendanc
Joined: 2009-07-02 09:26:15 Thursday
Posts: 38
Location
 
Just wanted to let you know we're still working on this but have a couple travel days this week so might be a bit slower than usual.
IP Logged
 Subject :Re:SMTP host with port.. 2009-12-09 09:24:07 Wednesday 
sportsmissions
Joined: 2009-12-07 09:11:08 Monday
Posts: 7
Location

Thanks for your help.  Let me know if you do find anything.

IP Logged
 Subject :Re:SMTP host with port.. 2010-06-18 10:16:44 Friday 
chrisdawk
Joined: 2010-06-17 10:12:11 Thursday
Posts: 3
Location

I am having a similar problem.  Using regular gmail, but get the following error:

 


Warning: fsockopen(): unable to connect to smtp.gmail.com:465 in /home/content/T/r/a/Tracemed76/html/s2_form_highrise/phpmailer/class.smtp.php on line 105

SMTP Mail Settings

Your SMTP settings are as follows:

SMTP Host: ssl://smtp.gmail.com
SMTP Use Authenication: Yes
SMTP User: tracemedia@gmail.com
SMTP Password: Omitted for security reasons.

Message could not be sent. Mailer Error: SMTP Error: Could not connect to SMTP host.
-------

I gave up on the Gmail and set up an email account through Godaddy.  Now I can't seem to get around this error:

SMTP Mail Settings

Your SMTP settings are as follows:

SMTP Host: smtpout.secureserver.net
SMTP Use Authenication: No
SMTP User: chris@trace-media.com
SMTP Password: Omitted for security reasons.

Message could not be sent. Mailer Error: The following From address failed: chris@trace-media.com
IP Logged
Page # 


Powered by ccBoard


Online Store


List All Products





Lost Password?
Forgot your username?
No account yet? Register

Official PayPal Seal

StringTwo Blog

Popular Forum Topics

StringTwo @Twitter

Basic authentication is not supported