Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Ryan A
Hey,
Thanks Mark, Matthew, Manuel and Miles.

(Yep, even i thought it was quite funny how only ppl with their firstnames
that start with M replied :-D ,
sounds almost like I will be quoting the bible next!)

You guys have given me some very good starting points, will look into it.

Feel free to chip in anything else that may come to mind.

Cheers,
Ryan

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Matthew Weier O'Phinney mailto:[EMAIL PROTECTED]
on Monday, September 12, 2005 6:55 AM said:

 Mails are then queued to an MTA -- in our case, Postfix.

This is the part I don't know how to do. Can you explain/show some code?


Thanks,
Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos

Hello,

on 09/12/2005 02:56 PM Chris W. Parker said the following:

Matthew Weier O'Phinney mailto:[EMAIL PROTECTED]
on Monday, September 12, 2005 6:55 AM said:


Mails are then queued to an MTA -- in our case, Postfix.


This is the part I don't know how to do. Can you explain/show some code?


Just use the mail function and it will get queued in Postfix.

--

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



Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Matthew Weier O'Phinney
* Manuel Lemos [EMAIL PROTECTED] :
 Hello,

 on 09/12/2005 02:56 PM Chris W. Parker said the following:
  Matthew Weier O'Phinney mailto:[EMAIL PROTECTED]
  on Monday, September 12, 2005 6:55 AM said:
  
   Mails are then queued to an MTA -- in our case, Postfix.
  
  This is the part I don't know how to do. Can you explain/show some code?

 Just use the mail function and it will get queued in Postfix.

Or mail via SMTP to running postfix/sendmail/whatever.

-- 
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos

Hello,

on 09/12/2005 05:18 PM Matthew Weier O'Phinney said the following:

Mails are then queued to an MTA -- in our case, Postfix.

This is the part I don't know how to do. Can you explain/show some code?

Just use the mail function and it will get queued in Postfix.


Or mail via SMTP to running postfix/sendmail/whatever.


If he is running postfix on the same machine that postfix is running, it 
 does not make much sense to send the message via SMTP because it is a 
much slower way to do the same thing.


--

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



RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED]
on Monday, September 12, 2005 1:36 PM said:

 If he is running postfix on the same machine that postfix is running,
   it does not make much sense to send the message via SMTP because it
 is a much slower way to do the same thing.

I'm not. I was hoping to glean a method for Postfix that I could apply
to sendmail.


Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos

Hello,

on 09/12/2005 06:30 PM Chris W. Parker said the following:

Manuel Lemos mailto:[EMAIL PROTECTED]
on Monday, September 12, 2005 1:36 PM said:


If he is running postfix on the same machine that postfix is running,
  it does not make much sense to send the message via SMTP because it
is a much slower way to do the same thing.


I'm not. I was hoping to glean a method for Postfix that I could apply
to sendmail.


Postfix is compatible with sendmail. It provides a wrapper program also 
named sendmail to act as a replacement. This is standard in Unix/Linux 
machines. Usually you only have on MTA program installed that can either 
be sendmail, postfix, qmail, exim, etc.. If you use the mail() function, 
it uses whatever is installed in your machine because by default it 
calls the sendmail program.


--

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



RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED]
on Monday, September 12, 2005 2:41 PM said:

 If you use
 the mail() function, it uses whatever is installed in your machine
 because by default it calls the sendmail program.

I am aware of that but the problem I'm having is inconsistent mailings.
For example, an email is supposed to be sent to me everytime someone
creates a new account on our website but I only get about 1 out of 5 of
these emails and I have no idea why. I was trying to take PHP out of the
loop with regards to sending email so that I could rule out PHP as being
the problem.



Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Manuel Lemos

Hello,

on 09/12/2005 06:48 PM Chris W. Parker said the following:

If you use
the mail() function, it uses whatever is installed in your machine
because by default it calls the sendmail program.


I am aware of that but the problem I'm having is inconsistent mailings.
For example, an email is supposed to be sent to me everytime someone
creates a new account on our website but I only get about 1 out of 5 of
these emails and I have no idea why. I was trying to take PHP out of the
loop with regards to sending email so that I could rule out PHP as being
the problem.


If you use PHP mail() function it just calls the sendmail wrapper. If 
you loose messages, you should check the logs of the installed MTA. Your 
problem seems to be misconfiguration like you are not setting a valid 
return path address or your machine does not have a reverse record for 
its IP in the DNS.


For certain kinds of problems, I usually recommend this class that comes 
with a wrapper function named smtp_mail(). It works like the mail() 
function but injects the message via the SMTP server. However, I am not 
sure if it will work any better if your problems are one of those that I 
suggested above. In any case, you can try it:


http://www.phpclasses.org/mimemessage

You also would 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



RE: [PHP] Re: Best way to mass mail

2005-09-12 Thread Chris W. Parker
Manuel Lemos mailto:[EMAIL PROTECTED]
on Monday, September 12, 2005 3:15 PM said:

 If you use PHP mail() function it just calls the sendmail wrapper. If
 you loose messages, you should check the logs of the installed MTA.
 Your problem seems to be misconfiguration like you are not setting a
 valid return path address or your machine does not have a reverse
 record for its IP in the DNS.

Thanks for the suggestion(s). I will look into it.


Chris.

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] Re: Best way to mass mail

2005-09-12 Thread Matthew Weier O'Phinney
* Manuel Lemos [EMAIL PROTECTED] :
 on 09/12/2005 05:18 PM Matthew Weier O'Phinney said the following:
 Mails are then queued to an MTA -- in our case, Postfix.
This is the part I don't know how to do. Can you explain/show
some code?
   Just use the mail function and it will get queued in Postfix.
  
  Or mail via SMTP to running postfix/sendmail/whatever.

 If he is running postfix on the same machine that postfix is running,
 it does not make much sense to send the message via SMTP because it is
 a much slower way to do the same thing.

This was more in the instance that the server with the MTA is separate
from the web server (which it often will be). You're right though -- if
the MTA is on the same machine, just use the local executables.

-- 
Matthew Weier O'Phinney
Zend Certified Engineer
http://weierophinney.net/matthew/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php