Is sounds like you are having issues with the “From” header. Gmail is dropping the emails because it fails to verify that you are allowed to send from @hostingprovider.com. The ISP is not as strict on checking this and allows the emails to be delivered. Remember that big name emails services, Gmail, Aol, Yahoo, Outlook will be harder on spam and incorrect email headers will be flagged and the emails dropped.
Try sending a test invoice to https://www.mail-tester.com/ you will get an auto generated email, this should help you track down the issue.
Thanks for you reply, I did a test on www.mail-tester.com and my score is 10/10.
If I send a email from my hostingprovider’s webmail to a [at]gmail.com emailaddress, then there is no problem.
But if I send it from InvoicePlane, then they do not receive my invoice-email.
When using those and having your hosting provider send the email you will have the FROM address mismatch, which causes Gmail to drop the email or flag it as spam. It sounds like your provider is overriding your FROM address which is why some recipeints see “username[at]myhostingprovider.com”.
Unless you can work with your provider to stop this behaviour, my recommendation in order to get the FROM address to be info@mydomainexample.com. Is to switch to using the SMTP method with a transactional email provider such as SendGrid or SparkPost.
I am not familiar with CentOS setup of InvoicePlane. Hopefully someone else on the forum is able to help. I currently have setup InvoicePlane on Windows Server with IIS.