GMAIL SMTP SSL Working Simple WAY 2.3

Everything related to Hesk - helpdesk software

Moderator: mkoch227

Post Reply
vonone
Posts: 5
Joined: Sat Oct 01, 2011 7:16 am

GMAIL SMTP SSL Working Simple WAY 2.3

Post 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.
Last edited by vonone on Mon Oct 03, 2011 7:42 am, edited 3 times in total.
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Post 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.
- Lisa
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Post by Klemen »

Thanks for the heads up - will include easy support for SSL SMTP in next version.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
vonone
Posts: 5
Joined: Sat Oct 01, 2011 7:16 am

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Post 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.
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Post 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?
- Lisa
Klemen
Site Admin
Posts: 10136
Joined: Fri Feb 11, 2005 4:04 pm

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Post 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).
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here Image

Image You should follow me on Twitter here

Help desk software | Cloud help desk | Guestbook | Link manager | Click counter | more PHP Scripts ...

Also browse for php hosting companies, read php books, find php resources and use webmaster tools
Lisaweb
Posts: 94
Joined: Sun Sep 25, 2011 3:23 pm

Re: GMAIL SMTP SSL WORKING SIMPLE WAY 2.3

Post by Lisaweb »

Ah, thank you! All clear now. :-)
- Lisa
ultime
Posts: 2
Joined: Sun Jan 15, 2012 1:05 pm

Re: GMAIL SMTP SSL Working Simple WAY 2.3

Post by ultime »

Thanks :D
Post Reply