An alternative to sendmail?

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

An alternative to sendmail?

Post 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
phpfreak
Forum Commoner
Posts: 30
Joined: Fri Mar 21, 2003 10:28 am
Location: New Jersey,USA
Contact:

mail

Post 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
penguinboy
Forum Contributor
Posts: 171
Joined: Thu Nov 07, 2002 11:25 am

Post by penguinboy »

On my linux box the mail() function uses sendmail.
User avatar
llimllib
Moderator
Posts: 466
Joined: Mon Jul 01, 2002 2:19 pm
Location: Baltimore, MD

yup

Post 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.
Post Reply