Hi,
I'm new at this mail( ) system.. I never had to configure the server before and although it "only" took me 1 day to get a mailserver up (mainly cause no one told me that port 110 was needed...) I have a small issue:
Warning: mail() [function.mail]: SMTP server response: 503 This mail server requires authentication when attempting to send to a non-local e-mail address. Please check your mail client settings or contact your administrator to verify that the domain or address is defined for this server.
Ok.. so if I send an email in "local" it work fine.. but if I try to send it out it ask for a username and password. Actually I wanted a username and passwor din local too but I guess I missed that option somewhere.
However the problem is.. how / where do I put the username and passord exactly???
my code:
<?php
$headers = 'From:
[email protected]' . "\r\n";
$headers.= "MIME-version: 1.0\n";
$headers.= "Content-type: text/html; charset= iso-8859-1\n";
$message = "Dear Mr X, You have been selected to come on a free trip to America for your birthday\n";
$sentto="
[email protected]";
mail($sentto,'Come to America', $message, $headers);
?>
Yeah I know i'm not really George Bush .. you got me ;)
Seriously though .. anyone got a clue how to specify a username and password??
Thanks.