You are sending from your host to Google via SMTP. This means that Google will see that your host is in your SPF record and is acting accordingly.
So, you must include your public ip in the SPF record and pray that this is enough.
Also, your username is myemail not myemail@gmail.com . And the password should be a real password, of course.
If nothing works, consult the PHPMailer logs, there should be more hints.
mikhailian
source share