I know about the mail function in php:
mail ($to, $subject, $msg_body,$headers);
But since I cannot access my host's php.ini file, I've been provided with the following details:
SMTP host: mailout.host.com
Port: 25 SMTP
Username: email@domainname.com
SMTP Password: not required
Authentication: Disabled
Encryption: Disabled
How can I use these details to send out emails?
EDIT: I used example pointed by Blender (below) and it seems to work fine for all emails except gmail. Any idea why? Is it to do with Fully Qualified Address?