RE: [PHP] Re: sending mail -- nullmailer
| From: | Josh Howe | Date: | Fri, 08 Oct 2004 19:00:59 +0000 |
| Subject: | RE: [PHP] Re: sending mail -- nullmailer | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-199018@lists.php.net to get a copy of this message | ||
I don't want to setup and maintain a new mail server (sendmail) when we
already have an smtp server set up and maintained by our sys admin. Am I
crazy here?
Can anybody recommend a good sendmail wrapper I can use that will work with
PHP and any other apps that use sendmail? Thanks
-----Original Message-----
From: Manuel Lemos [mailto:mlemos@acm.org]
Sent: Friday, October 08, 2004 12:59 PM
To: Josh Howe
Cc: php-general@lists.php.net
Subject: [PHP] Re: sending mail -- nullmailer
Hello,
On 10/08/2004 01:35 PM, Josh Howe wrote:
> Ok, so I came across nullmailer, which seems to do exactly what I want -
> forward mail to an existing smtp server. But it isn't working. I'm using
the
> mail() php function, and the mails aren't arriving. The same code works
fine
> on a windows machine pointing to the same smtp server. Does anybody have
any
> experience configuring nullmailer? How do I tell linux to use nullmailer
as
> the default MTA? Thanks!!
I don't know why do you want to replace your Linux installation MTA.
Usually is sendmail or compatible and can be configured to relay
messages to a SMTP server instead of deliverying them directly.
Under Linux/Unix PHP just hands the message to the sendmail program. It
would not make much sense to relay messages a SMTP server when sendmail
can be more efficient by sending them directly to the SMTP of the
recipient users, unless you are trying to send messages from a server
that is blacklisted and the world is not accepting messages from it or
because of some other blocking reason.
Anyway, if you really want to relay messages to a SMTP server under
Linux/Unix, the mail function will not do that. Instead you may want to
try this class that comes with a wrapper function named smtp_mail(). It
emulates the mail() function and the purpose of its arguments except
that it can relay the messages a SMTP server of choice.
http://www.phpclasses.org/mimemessage
You also need this:
http://www.phpclasses.org/smtpclass
--
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php