Jump to content

How to make Google Apps for Your Domain work with WHMCS in 5 steps


Gears

Recommended Posts

it is not working for me.. i am using 3.8.2 and Gapps i have POP3 and IMAP enabled... i run the PHP command from the shell and see it imports 1 email however, no ticket is opened!

 

Check the Ticket Mail Import Log under Utilities and make sure it even picked up the email.

 

Gears: I am having a similar issue. It picks up the mail and it shows in the Import Log page but the To: field is blank and it says Department Not Found. Obviously... the To field is blank. I am not using the files provided in this thread. Should I try them?

 

Brandon

Link to comment
Share on other sites

When doing Step 3, did you enter in all the information? Even the Department Name, Description, and Email Address (the stuff above the POP3 Importing Configuration)?

 

!!! So stupid! I had the email address as admin@ not support@... Ugh! It works great. Thanks a lot!

Link to comment
Share on other sites

  • 2 weeks later...

I am to lazy to modify code.

 

WHMCS's PHP mail classes are from http://phpmailer.codeworxtech.com/index.php?pg=sf&p=dl

 

I just upgrade my classes to V5 and added ssl:// to my smtp host and we are golden.

 

I dont know why WHMCS does not just upgrade their phpmailer class.

Edited by stephen_c01
cant spell
Link to comment
Share on other sites

  • 2 weeks later...

Hi Gears ,

Thank you for your great guide.

I only made changes to it to work with your guide. adding "tls://" part.

the phpmailer class which you have posted in your guide is very old and is v2.0rc3.

so I thought updating it will be helpful and more stable.

Regards

Link to comment
Share on other sites

Hi Gears ,

Thank you for your great guide.

I only made changes to it to work with your guide. adding "tls://" part.

the phpmailer class which you have posted in your guide is very old and is v2.0rc3.

so I thought updating it will be helpful and more stable.

Regards

 

There isn't much point in this modification anymore. Whmcs V4 includes the necessary code for TLS.

 

Open class.phpmailer.php find "var $SMTPSecure" and set it to "tls"

Link to comment
Share on other sites

WHMCS V4.0 still includes v2.3 of phpmailer which is old. phpmailer is version 5 now.

also by changing $SMTPSecure to tls , it wont work with non secure SMTP servers any more , so it is better to use "tls://" hack for compatibility with all SMTP servers.

I suggest WHMCS uses officially this hack in its package.

Link to comment
Share on other sites

WHMCS V4.0 still includes v2.3 of phpmailer which is old. phpmailer is version 5 now.

also by changing $SMTPSecure to tls , it wont work with non secure SMTP servers any more , so it is better to use "tls://" hack for compatibility with all SMTP servers.

I suggest WHMCS uses officially this hack in its package.

 

Well WHMCS basically copied my mod and pasted it in so yeh. They probably should update the class.

Link to comment
Share on other sites

I cant seem to get my mail relay to work i have tryed putting tls in the phpclassmailer file ect.. and i checked the tick box and made sure it was on SMTP all i get everytime is this

"Email Sending Failed - SMTP Error: Could not connect to SMTP host."

 

and yes i did change the mail type to SMTP its just set to PHP mailer atm

 

here is my stats

23487486.th.png

 

I had the same setup on my 3.8.1 with that one persons hack and it worked fine.

 

Thanks for any help :)

Link to comment
Share on other sites

HI

 

I am getting the error

 

 

An Error Occurred: Can't connect to gmail-pop.l.google.com,995: Connection timed out

 

That indicates a firewall issue between your WHMCS server and the google servers.

 

Either that, or that certain google server is down (doubt it). You could try changing the priority order of your MX records.

Link to comment
Share on other sites

Thank you very much for your excellent tutorial. I am new to this product and set up three support departments with separate email accounts @mydomain.com using Google Apps and it works perfectly. :)

Link to comment
Share on other sites

ah thanks, I thought they were an error. :P

 

On another note, I noticed that when I reply the ticket through email, the ticket does get the response, however the client doesnt get an email of the response. Is this happening to anyone else?

Link to comment
Share on other sites

  • 1 month later...

1. Create a google app acct for your domain

2. Verify your domain for Google

3. Log into Google Control Panel for your domain and create

appropriate email accounts that will be using WHMCS ticketing

system and receiving tickets.

4. For all accounts that will be receiving tickets, be sure to enable

POP3 and IMAP in Google Mail's webmail interface.

5. Adjust your mx records on your webserver to redirect your email

service to google.

6. Here's one of the "gotchas" in getting this set up. You must enable

Imap-SSL/Pop3-SSL with your webserver's php installation. Many

times you will need to contact your hosting providers to do this for

you. The reason for that is because Google Mail services will only

accept secured connections. (or try install php5-imap package)

7. In WHMCS, in support depts, Create a department and configure

the email account assigned to it like so:

hostname: pop.gmail.com

port: 995

user: youremail@yourdomain.com

pwd: yourpassw0rd

8. In the account you set up in WHMCS in support dept, make sure to

go into google settings to enable both IMAP and POP.

9. Set up your cron job within your Web Hosting control panel

(Plesk, cPanel, Direct Admin etc.):

*/5 * * * * php -q /home/username/public_html/whmcs/pipe/pop.php

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated