concretecms-community-store / community_store

An open, free and community developed eCommerce system for Concrete CMS
https://concretecms-community-store.github.io/community_store/
MIT License
106 stars 66 forks source link

Email issues "The input is not a valid email address. Use the basic format local-part@hostname" #729

Closed mdius closed 1 year ago

mdius commented 1 year ago

I am getting a log error after upgrading the site to Concrete 9, PHP 8.1, and the latest version of Community Store. When checking out it refreshes to the homepage and throughs the error Community Store: a notification email failed sending to sales@mdius.com, 1, with error The input is not a valid email address. Use the basic format local-part@hostname https://www.mdius.com/products/test-product-1 Use code Free4Me for free shipping. If you need a refresh of the site login let me know.

Mesuva commented 1 year ago

From the error message it appears that it's trying to email both 'sales@mdius.com' and '1'. Obviously '1' isn't an email address, and that's where it is failing.

That 1 appears to be coming from an individual notification email field on a product. Screen Shot 2023-02-08 at 3 27 47 pm

I think you might only have it on a few products

mdius commented 1 year ago

Ahhh, yup. A change I made someplace was causing it to not allow it to be null. I'm sorry about that. But thank you for helping again.