Solved RFC 2822, 3.6.2. compliance error when sending a ticket
The error is saying that the email address you are providing does not comply with the RFC standards. Make sure your email address variable is not blank.
The fully RFC 822 compliant regex is inefficient and obscure for validate email address because of its length. Fortunately, RFC 822 was superseded twice and the current specification for email addresses is RFC 5322. RFC 5322 leads to a regex that can be understood if studied for a few minutes and is efficient enough for actual use.
If you use HTML5, use this code:
<input type="email" name="email" required placeholder="Enter a valid email address">