Re: Problem with sending mail via smtp.gmail ( php )
as the error message states, you are probably trying to send mail from a script that is being run in a SSL context. you can't do that without first installing postfix-ssl.
that aside, you can only get away with abusing mail() by forcing it to send mail through a SMTP server as long as the server doesn't require authentication.
if it does, you will have to use one of the various PHP sendmail classes or implement your own. Craig's blog post provides the basics for doing that.
shouldn't a mod move this thing to programming talk?
True warriors don't follow paths - they make them.
It's not their desire, it's their nature.