Page 1 of 1

GMAIL SMTP SSL Working Simple WAY 2.3

Posted: Sat Oct 01, 2011 7:30 am
by vonone
I was sadly disappointed when i could get hesk 2.3 to connect to gmail on the client server

Even got a license :(
Searched around. Couldn't find anything. So this simple solution seemed worthwile posting :mrgreen: .

Here is the settings.
SMTP Server
SMTP HOST: SERVER: smtp.gmail.com
SMTP PORT: 465
SNTP Timeout: 20
SMTP Username: whatever@gmail.com
SMTP Passowrd: your pass

Ok, if you tried this NOT Working???

Now edit /inc/mail/smtp.php
Make these small changes. Go back and try your configuration agian.

Now this was really simple to find 1 edits.

CORRECTED NOW by Klemen SORRY FOR THE CONFUSION
*** up super late when I discovered this ***


SEE starting at Line 276

Code: Select all

{metadocument}
	<variable>
		<name>ssl</name>
		<type>BOOLEAN</type>
		<value>0</value>
		<documentation>
			<purpose>Define whether the connection to the SMTP server should be
				established securely using SSL protocol.</purpose>
			<usage>Set to <booleanvalue>1</booleanvalue> if the SMTP server
				requires secure connections using SSL protocol.</usage>
		</documentation>
	</variable>
{/metadocument}
*/
	var $ssl=0;

FIND

Code: Select all

var $ssl=0;
and replace with

Code: Select all

var $ssl=1;
Thanks
See you later.

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Posted: Sat Oct 01, 2011 12:38 pm
by Lisaweb
Thanks for this awesome mod. But could you clarify things a bit? You say to find these edits, but you don't what to replace them with. Thanks.

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Posted: Sat Oct 01, 2011 2:56 pm
by Klemen
Thanks for the heads up - will include easy support for SSL SMTP in next version.

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Posted: Sat Oct 01, 2011 4:12 pm
by vonone
Lisaweb wrote:Thanks for this awesome mod. But could you clarify things a bit? You say to find these edits, but you don't what to replace them with. Thanks.
The lines I put are the replacement lines they are not identical.

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Posted: Sun Oct 02, 2011 12:31 am
by Lisaweb
Ahh, so you mean, replace this:

Code: Select all

{metadocument}
	<variable>
		<name>host_port</name>
		<type>INTEGER</type>
		<value>465</value>
		<documentation>
			<purpose>Define the SMTP server host port.</purpose>
			<usage>Set to the TCP port of the SMTP server host to connect.</usage>
		</documentation>
	</variable>
{/metadocument}
*/
	var $host_port=465;
with this?

Code: Select all

{metadocument}
	<variable>
		<name>ssl</name>
		<type>BOOLEAN</type>
		<value>1</value>
		<documentation>
			<purpose>Define whether the connection to the SMTP server should be
				established securely using SSL protocol.</purpose>
			<usage>Set to <booleanvalue>1</booleanvalue> if the SMTP server
				requires secure connections using SSL protocol.</usage>
		</documentation>
	</variable>
{/metadocument}
*/
	var $ssl=1;
Right?

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Posted: Sun Oct 02, 2011 8:49 am
by Klemen
He means:

1. find

Code: Select all

var $ssl=0;
and replace it with

Code: Select all

var $ssl=1;
2. the port should be changed to 465 in Hesk settings not in the smtp.php file:
Admin panel > Settings > Misc > Email Sending > SMTP Port (set to 465).

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Posted: Sun Oct 02, 2011 1:05 pm
by Lisaweb
Ah, thank you! All clear now. :-)

Re: GMAIL SMTP SSL Working Simple WAY 2.3

Posted: Mon Jan 16, 2012 10:22 am
by ultime
Thanks :D