test email is working but not sending email with wp mail [closed]

Check with your email host regarding the “data not accepted” error.

This could be for a number of reasons. Based on what you posted, the most likely reason is trying to use a different “from” address than the account’s actual address. For example, using the “[email protected]” account to send from “[email protected]”. In other words, “[email protected]” as a sender is being rejected.