Page 1 of 1

An alternative to sendmail?

Posted: Fri Mar 28, 2003 9:18 am
by penguinboy
I have a script that mails people their password when they sign up for an account.

I don't really want to run a mail server.
So I was wondering if there is an alternative to sendmail.
It would be nice if I could just send mail through the command line.

Thanks for any help.

--pb

mail

Posted: Fri Mar 28, 2003 1:21 pm
by phpfreak
use the function
mail()
,
the advantages:

1)this function can be used in the command line,
2)can be used to send multiple emails
3)can send multiple headers too.

regards
srinivas

Posted: Fri Mar 28, 2003 3:57 pm
by penguinboy
On my linux box the mail() function uses sendmail.

yup

Posted: Mon Mar 31, 2003 3:42 pm
by llimllib
yup, it sure does. Assuming that you have access to an SMTP server somewhere, what you want to do is use the Pear SMTP class. I'm not sure if it comes with a standard Pear distribution, but if it doesn't, download it (and make sure you have all its includes) from the Pear CVS, which is publically available.

I used it about a year ago, and it worked very nicely for me.