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
An alternative to sendmail?
Moderator: General Moderators
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
-
penguinboy
- Forum Contributor
- Posts: 171
- Joined: Thu Nov 07, 2002 11:25 am
yup
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.
I used it about a year ago, and it worked very nicely for me.