Actually I don't think it's a php problem, It seems to make it to
sendmail. But sendmail is having a problem connecting to other SMTP
servers. I keep getting returned e-mails.
Do they include an error message with the reason for the return?
If not, are there any in /var/log/maillog? Does your ISP block
direct outbound email? You may have to forward through the ISP
mailer - and many places will reject if you don't anyway.
Okay, how do I forward through my ISP?
This is the error: Deferred: Connection timed out with gsmtp163.google.com.