Hello,
I am hosting Hesk in a Google Cloud Platform (GCP) Compute Engine Virtual Instance. The installation went smooth and I am able to use it fine except for users not receiving emails (e.g. confirmation email when user submits a ticket) which is due to GCP blocking outgoing email ports. Instead of this, GCP recommends using other services such as MailGun to send email.
I want to use MailGun with Hesk to get around the port-blocking problem. I need guidance on this:
- Are there any plugins that add MailGun support in addition to PHP mail and SMTP server in settings?
- If I want to edit the code parts that deal with email sending to use MailGun API instead, could this be doable with manageable time/effort?
- Which files should I confine my editing to?
Many thanks.
Hesk in Google Cloud Platform Compute Engine Virtual Instance
Moderator: mkoch227
-
- Posts: 2
- Joined: Tue Nov 17, 2020 3:02 pm
Re: Hesk in Google Cloud Platform Compute Engine Virtual Instance
From what I read only port 25 is blocked?
https://cloud.google.com/compute/docs/t ... nding-mail
Have you tried port 587? Here's what works for Gmail from other servers:
https://www.hesk.com/knowledgebase/?article=72
There's no plugin available for MailGun for the current version. Mods for HESK supports MailGun but only works with Hesk 2. You'll probably need to edit inc/email_functions.php to post to MailGun API instead of PHP mail or SMTP server.
https://cloud.google.com/compute/docs/t ... nding-mail
Have you tried port 587? Here's what works for Gmail from other servers:
https://www.hesk.com/knowledgebase/?article=72
There's no plugin available for MailGun for the current version. Mods for HESK supports MailGun but only works with Hesk 2. You'll probably need to edit inc/email_functions.php to post to MailGun API instead of PHP mail or SMTP server.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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
-
- Posts: 2
- Joined: Tue Nov 17, 2020 3:02 pm
Re: Hesk in Google Cloud Platform Compute Engine Virtual Instance
Thanks a lot for your speedy reply,
I followed the instructions in the Gmail page you included in your reply, and now the user who submits a ticket gets notification of submission, and the administrator also gets notification. So things are great.
There is one little annoyance. The administrator gets an extra email from Google (mailer-daemon@googlemail.com) complaining about failure to deliver message to some "you@example.com" [1].
In Hesk -> Settings -> General, I have both Webmaster email and "From" email set to the Gmail address I use in SMTP configuration in Hesk -> Settings -> Email. I could not see "you@example.com" anywhere in Settings. How do I get rid of this?
Cheers.
[1]
Address not found
Your message wasn't delivered to you@example.com because the domain example.com couldn't be found. Check for typos or unnecessary spaces and try again.
LEARN MORE
I followed the instructions in the Gmail page you included in your reply, and now the user who submits a ticket gets notification of submission, and the administrator also gets notification. So things are great.
There is one little annoyance. The administrator gets an extra email from Google (mailer-daemon@googlemail.com) complaining about failure to deliver message to some "you@example.com" [1].
In Hesk -> Settings -> General, I have both Webmaster email and "From" email set to the Gmail address I use in SMTP configuration in Hesk -> Settings -> Email. I could not see "you@example.com" anywhere in Settings. How do I get rid of this?
Cheers.
[1]
Address not found
Your message wasn't delivered to you@example.com because the domain example.com couldn't be found. Check for typos or unnecessary spaces and try again.
LEARN MORE
Re: Hesk in Google Cloud Platform Compute Engine Virtual Instance
You probably have a Hesk user with the example.com email address (the default Administrator likely)? Check in your Admin panel > Team page.
Klemen, creator of HESK and PHPJunkyardWas this helpful? You can buy me a drink here 
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


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