I have a correct email address. I have echoed it, but when I send it, I get the following error:
Address in mailbox given [] does not comply with RFC 2822,
Make sure your email address variable is not blank. Check using
print_r($variable_passed);