You are here: Re: mail() and ssmtp not working « PHP Programming Language « IT news, forums, messages
Re: mail() and ssmtp not working

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация