This one is over my head.
Objective - Send email from webpage hosted on DO through SMTP server at Hostgator.
Status - It works only for emails going to another email account hosted by HG. Sending an email to gmail etc is blocked.
Request - How do I remove the HELO - 127.0.0.1 as discussed by the HG support team:
j.keyclusive.us is hosted with Digital Ocean and the mail HELO for the emails are setup to use 127.0.0.1 due to which the emails are being blocked. So, you would need to reach out to your hosting provider and have them update the mail helo to use the server hostname instead of 127.0.0.1 which should fix the issue with your emails. Please note that the HELO 127.0.0.1 is not allowed on our Shared servers.
Here is a log of email that you can provide to your host so that they could review it and fix the issue:
2023-07-12 00:58:31 1qJSrv-003Fyq-Ax <= j@keyclusive.us H=keyclusive.us ([127.0.0.1]) […85.92]:36628 I=[…247.151]:465 P=esmtpsa X=TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128 CV=no A=dovecot_plain:j@keyclusive.us S=901 id=c1279fa6-80dd-884f-f4d5-f08998eb6b1f@keyclusive.us T=“HGtest wanted you to see this boat.” from <j@keyclusive.us> for hellofromhg@gmail.com
2023-07-12 00:58:31 SMTP connection from keyclusive.us ([127.0.0.1]) […85.92]:36628 I=[…247.151]:465 lost D=0s
2023-07-12 00:58:31 1qJSrv-003Fyq-Ax => /dev/null <hellofromhg@gmail.com> F=<j@keyclusive.us> R=fightspamHG T=bypassed S=0
2023-07-12 00:58:31 H=keyclusive.us ([127.0.0.1]) […207.85.92]:36630 I=[…247.151]:465 Warning: got HELO: [127.0.0.1]
Thanks