|
Posted by Manuel Lemos on 09/18/05 21:50
Hello,
on 09/14/2005 06:04 PM tencip said the following:
> So, we're avoiding using sendmail for obvious security reasons on a
> highly secured FreeBSD box. However, we need to get mail out of that
> box to an SMTP relay server. So, we heard about ssmtp, which is a
> sendmail emulator.
It sounds a bit paronoid, but...
> Well, this works great from the command line, can send emails to the
> relay server just fine. however, we haven't been able to get it to
> work with the basic PHP mail() function.
>
> Can anyone tell me if they've gotten ssmtp to work with PHP's mail()
> function?
You may want to try this class that comes with a wrapper function named
smtp_mail() that emulates the mail() function but lets you send messages
either relaying to another SMTP server, or send directly to the
destination SMTP server.
http://www.phpclasses.org/mimemessage
You also need this:
http://www.phpclasses.org/smtpclass
If you need to authenticate to relay, you also need this:
http://www.phpclasses.org/sasl
--
Regards,
Manuel Lemos
PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
PHP Reviews - Reviews of PHP books and other products
http://www.phpclasses.org/reviews/
Metastorage - Data object relational mapping layer generator
http://www.meta-language.net/metastorage.html
[Back to original message]
|