Forum Moderators: coopster
basically, the problem is, i need to send an email to smtp.example.co.uk and to access the smtp i need to enter and username and passowrd, ive fiddles with the mail() function but i cant figure out how to make it connect to smtp.example.co.uk as my webhost does not have their own smtp server unfortunatly.
all i want to do is connect to the smtp server with the following:
$domain = "smtp.example.co.uk";
$user = "username";
$pass = "password"; //wont disclose real details on forums
then send the email composed of:
$from = $_POST['email'];
$to = "sales@example.com";
$subject = $_POST['sub'];
$message = $_POST['message'];
its a shame as far as im aware phps mail function does not allow you to send to a custom smtp with a username and password, as far as im aware this is not possible, any ideas?
your help on the matter is most appreciated.
[edited by: coopster at 3:49 pm (utc) on May 30, 2006]
[edit reason] generalized url [/edit]
[edited by: coopster at 3:50 pm (utc) on May 30, 2006]
[edit reason] generalized url [/edit]