The script itself works great and happy with that, however the email settings keep giving an error and can’t connect to the gmail server. I’ve tried every option but continues to give me error. This only occurs with a gmail address, also iCloud email too. However it works when using my email on my own server with Siteground.
I’ve contacted phpjabbers however they won’t even look at my question without first paying them $170 AUD…now I’m not adverse to paying for service but this seems a little excessive for what is probably a simple input I have incorrect.
Hopefully someone here has an idea on how to implement the correct settings for this.
I believe the issue arises because the web hosting service does not permit sending emails from domains other than the one they are hosting. Many hosting companies have this policy to prevent spam and ensure security. Therefore, if you try to send emails from a different domain, it is likely to be blocked.
You can create an email account associated with your website’s domain and set it up to forward emails to your Gmail account. This way, you can receive emails sent to your website’s domain.
This issue is unrelated to the PHP Jabbers script, so you can save yourself the $170 :-)
Sending email from a gmail address requires app passwords. You cannot put your gmail password in the form. Check out this article. That should get you rolling.
Edit: App passwords are also required for iCloud email addresses too. You can do iCloud app passwords at https://appleid.apple.com/