Website stopped sending emails after transition to G suite, please help!

Permalink
I transitioned our email to Gsuite and since then I have stopped receiving emails when the contact form on our website is filled out. Our website is solpowersolar.com and our host is Bluehost. I've updated the MX records at Bluehost and verified that myself and all members of our team can send and receive emails internally and externally from our organzation, so I believe our emails to be working after the transition. Our website used to send me an email when one of our contact forms was filled out and it's no longer doing that. Could anyone please help me diagnose the issue? Our version of Concrete5 is: # concrete5 Version
Core Version - 8.5.1
Version Installed - 8.5.1
Database Version - 20190301133300
# concrete5 Packages
Fundamental (4.0.7)

I've tried several different settings under System & Settings - Email and here are the different results when I send a test email to eric@solpowersolar.com:

SMTP Method: Default PHP Mail Function
"The test email has been successfully sent to eric@solpowersolar.com.
You will receive a test message from concrete5-noreply@concrete5"
Except I don't receive a test messsage. I have also tried sending test messages to my personal email addresses and none of them receive a test message in inbox, all mail, or spam. It says the test email was sent successfully but there is no email sent.

SMTP Method: External SMTP server
Mail server: smtp.gmail.com
Username: eric@solpowersolar.com
Encryption: TLS
Port: 587
"The following error was found while trying to send the test email:
stream_socket_enable_crypto(): Peer certificate CN=`*.bluehost.com' did not match expected CN=`smtp.gmail.com'"

Mail server: smtp.gmail.com
Username: eric@solpowersolar.com
Encryption: SSL
Port: 465
"The following error was found while trying to send the test email:
Could not open socket: stream_socket_client(): Peer certificate CN=`*.bluehost.com' did not match expected CN=`smtp.gmail.com'"

Mail server: smtp.gmail.com
Username: eric@solpowersolar.com
Encryption: TLS
Port: [left blank]
"The following error was found while trying to send the test email:
Could not open socket: stream_socket_client(): unable to connect to tcp://smtp.gmail.com:25 (Connection timed out)"
This scenario takes about 10 seconds for the error message to come up, and produces the same results with SSL checked

Mail server: smtp.gmail.com
Username: eric@solpowersolar.com
Encryption: SSL
Port: 587
"The following error was found while trying to send the test email:
Could not open socket: stream_socket_client(): SSL operation failed with code 1. OpenSSL Error messages:
error:1408F10B:SSL routines:ssl3_get_record:wrong version number"

Those are all the different errors I've been able to produce. G suite support also walked me through setting up a relay using smtp-relay.gmail.com as the mail server. That produced the same errors as above. G suite support verified that the test emails haven't been sent.

Bluehost support wasn't helpful.

If anyone could help out or provide a suggestion that would be greatly appreciated. I don't care if the email comes from Bluehost or gmail. I just want an email sent to me when someone fills out the contact form on our website. I can't figure out the setting needed to get the website to send me an email. This was working great before I changed over to G suite a few days ago. Now our website can't send emails anymore but the rest of our emails appear to be working fine. Thank you in advance for any advice!

SolarEric
 
ConcreteOwl replied on at Permalink Best Answer Reply
ConcreteOwl
SolarEric replied on at Permalink Reply
SolarEric
Is this referring to the settings under System & Settings - System email addresses or do you think I need to change the code of the website?
My default email address is: concrete5-noreply@concrete5
My form block email address setting is: eric@solpowersolar.com

I don't understand how configuring the email sender addresses will help me, could you please explain it further? I can't get the website to send any emails. It's not that the emails are coming from the wrong email address, I can't get the website to send an email at all. Will configuring the sender address solve that?
SolarEric replied on at Permalink Reply
SolarEric
Hmm, I think I kind of figured it out, thank you! I changed the default from address to eric@solpowersolar.com and then I was able to send a test message and receive it using the "Default PHP Mail Function" setting. I guess I needed the from address to match the address G suite was expecting?

I emptied the form block and I was able to receive an email after submitting a test form submission on my website. The form submission is sent from my personal email address which I don't quite understand how that works. If I use eric@solpowersolar.com as the email then I also receive a form submission from that address. Changing the default email address to eric@solpowersolar.com to match my g suite email seemed to fix the problem. The form submission email doesn't seem to have an effect on it. Maybe I'm not understanding it correctly, but it seems to be working! Thank you once again.
PixelFields replied on at Permalink Reply
PixelFields
I know my hosting provider doesn't allow websites to send emails from domains they aren't hosted on for security/spam reasons so perhaps it's that?

Well done figuring it out, glad it's working! :)