Hey guys. I am trying to send email through the mail() function (as SMTP is not needed, and it's not a huge burden on the system) and found out that my host requires user authentication for security reasons. After nicely asking how I would work that into my script, they showed me the door. So, now it's up to you guys.
I've read up on php.net about the mail() function and how it has additional parameters. I was wondering how I would add the user & password for my account as well as the server and port using the mail() function. Anyone done that before?
I'm thinking that an array like:
<?php
$param['smtp_host'] = "mail.domain.com";
$param['smtp_port'] = "25";
$param['smtp_user'] = "username";
$param['smtp_pass'] = "password";
would work...
Any thoughts? Thanks!
~Brett