Page 1 of 1

Just cannot send mails

Posted: Mon Nov 26, 2018 5:41 pm
by anthonyaykut
Script URL: ********
Version of script: 2.8.2
Hosting company: Namecheap
URL of phpinfo.php: <can mail it to you, but gives OK msg>
URL of session_test.php: <can mail it to you>
What terms did you try when SEARCHING for a solution:
- Went through HESK knowledgebase
- Checked Google

Write your message below:
Hi -- our site runs on Namecheap but mails are routed through GSuite. Weird thing is that I can send email via phpmail() using the form on our web site (I can send the headers, if you like), but cannot send mail via Hesk with neither phpmail nor smtp; phpmail just does "nothing", smtp always says network unreachable. I do get an email saying that there is a new ticket created, but that's all the email activity there is, i.e. I cannot reply to the ticket via the web form.

Thanks,
Anthony

Re: Just cannot send mails

Posted: Mon Nov 26, 2018 7:04 pm
by Klemen
Hi Anthony,

You have a valid Hesk license so if you prefer to talk about this over email you are welcome to contact me.

Not sure about Namecheap, but some low-cost hosting providers (GoDaddy for example) block sending emails via external SMTP servers for security reasons, you can only use phpmail and/or their own smtp servers. If that's the case with Namecheap, connecting to Google won't work, but anyway make sure you try connecting with the correct Google settings.

I presume you get the notification email when you have PHP Mail selected in Hesk settings. If the notification arrives that means email sending is working; it doesn't make much sense that the exact same code works for one notification but not for others. Are you perhaps expecting emails that Hesk doesn't send, see here for when Hesk sends an email and to whom?

If this doesn't clear up things please let me know exactly what and when happens and I will try to help troubleshoot it.

Re: Just cannot send mails

Posted: Mon Nov 26, 2018 7:30 pm
by anthonyaykut
Thanks Klemen, just pinged you via your contact form, happy to continue the discussion over email.

-Anthony

Re: Just cannot send mails

Posted: Tue Nov 27, 2018 5:59 pm
by Klemen
If anyone else has the same problem with Namecheap, the solution is to contact Namecheap support and ask them to open ports 587, 995 and 993 for you. Explain you will be using your Google mail in combination with the Hesk support system:
https://www.hesk.com/knowledgebase/?article=72

You will also need to enable "less secure apps" in your Google account:
https://www.namecheap.com/support/knowl ... h-us#gmail