schooglepets
06-26-2004, 11:16 AM
Well I have ben trying for quite some time to get a script working that would send e-mails through SMTP so I wouldn't have to use the mail() function, but haven't gotten anywhere. I tried using the PEAR example from the PEAR site, but I coldn't ge that to work either. Has anyone made a script that works, or knows how to get the PEAR example to work?
Burhan
06-26-2004, 11:24 AM
What was wrong with the PEAR example? What error did you get? There is also phpmailer (http://phpmailer.sourceforge.net).
Rich2k
06-26-2004, 11:34 AM
If you want to learn SMTP sending through PHP yourself you've got a bit of a learning curve as you have to learn all of the SMTP commands and the possible return codes that the server may send back.
Saying that, it's actually not that complicated to do, just takes a bit to initially design it.
BTW you can do it all with fopen, fputs and fgets.
schooglepets
06-26-2004, 02:01 PM
Well I didn't get any erros, but the mail just didn't send.
Burhan
06-26-2004, 02:20 PM
Probably you had not passed correct variables for SMTP. Maybe your server requires authentication for which you did not specify credentials.
schooglepets
06-26-2004, 05:14 PM
What would the variables for user and password be?
$params['user'] & $params['password']?