maybe you start over reading what others already told you:
just a hint: var_dump(), PHPMailer
var_dump()