[PHP] Searchable archive

2002-12-03 Thread Mohanaraj
Hello,

Could anyone please point me to a searcheble archive of this mailing list. 
Thanks guys.

Mohan

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




[PHP] Is it safe to enable unused extensions?

2003-01-17 Thread Mohanaraj
Hi,

I might need to enable several extension - out of which only a single one is 
used. Do these extra extensions that are enabled but not used eat up 
appreciable amounts of memory or in any way slow down PHP?

Thank you and best regards,
Mohanaraj

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




[PHP] SESSION variable and register_globals

2003-02-10 Thread Mohanaraj
Hello guys,

I have a few questions regarding the subject and was hoping you could help me 
out.

1.If register_globals is on, then doing an unset($_SESSION["blah"]), to unset 
a session variable will not work as the variable will be unset in that 
particular instance but will be restored in next instance of that session.
Hence session_unregister("blah") also must be used to properly unset the 
session with global_register on. Is this true ?

2.Furthermore, can the session be registered via the direct
assignment of $_SESSION["aaa"] = $someValue  if register globals is on?

Thank you for your time.

Mohan


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




Re: [PHP] mail() usage in for loops

2003-08-11 Thread Mohanaraj
Michael Geier wrote:

See answer above.
With Qmail and homegrown software, I have several servers sending upwards of 
13K emails per minute.  All of these are HTML emails with: Custom headers, 
Custom unsubscribes.  I create my email list and break it into files of 500, 
then loop through those files.  I use the phpmailer class to do the sending via 
the qmail-inject application (allows injecting directly into the mail server, 
as opposed to putting into a queue).
 

Dear Michael,

When you say batches of 500 , would that mean you put pauses between 
each batch ?  Or do you prepare each email as a file and then send them 
out in batches of 500? Whats the time space between each batch? Assuming 
I was stuck with sendmail, what would you recommend ?

Thank you for your time sir.

Mohan.

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


[PHP] mail() usage in for loops

2003-08-14 Thread Mohanaraj
Dear all,

I have read that using mail() in a for loop to send a lot of emails (
around 1k-10k ) emails is not advised due to the fact that it can be
resource intensive hence or the script might take so much time that it
ti,es out. However what if i append all the emails into the Bcc: header
as follows and make only 1   call to mail.
1. Is this better?
2.Will it still be resource hungry?
3.What would be the best way to handle mailing to many email addresses
from PHP. This is for a newsletter (not SPAM) application I am working on.
4.How does this compare against using sockets to directly speak to the
SMTP server from a efficiency aspect?
The code I am planning on using (which I got online too ) is as follows :

$email = "[EMAIL PROTECTED]";
$subject = "test";
$body = "This is a test.";

$headers = "From: [EMAIL PROTECTED]";
$headers .= "Reply-to: [EMAIL PROTECTED]";
//the following willl have all the email addresses which will receive
the email
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "Bcc: [EMAIL PROTECTED]";
//..and so on...
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n";

mail ($email, $subject, $body, $headers);





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


Re: [PHP] mail() usage in for loops

2003-08-14 Thread Mohanaraj
Michael Geier wrote:

1.  many providers will not accept email messages with horrendous amounts of 
BCC: entries (very spam indicative)

Say we limit the BCC list to a hundred email addresesses. And use cron 
jobs to send the emails out every hour -- would that be ok?

What would you consider excessive, say we limit each email list to about 
1k subscribers, do you think your average hosting company will have a 
problem with that ?

3.  there are many excellent PHP mail classes (PHPClasses has a few and 
PHPMailer is an excellent alternative as well)

Thanks a lot. Looking at them now.

4.  IM(H)O, if you are going to send out large amounts of mail, dump sendmail.  
QMail is much faster at SMTP.

Ok.

Factors you may need to consider:
If this is a newsletter, why not use something like ezmlm or majordomo?  
Are these individualized messages (custom inserts for names or email addresses, 
custom unsubscribes, etc.)?
 

The messages will be individualized. Hence we would need to send out 
individual emails. Its possible that the BCC way also will not work, 
because we would need to process each email individually before sending 
them out.

What would be the best way to handle this ?

Many other programmers will mention things like having a dedicated outbound-
SMTP machine, while fending the bounces and unsubscribes on another, hardware 
types (SCSI over IDE), etc.  Make sure you have thought your application needs 
through before beginning programming.
 

I can  get a dedicated SMTP machine. That should be ok.

Thanks for your input mate.

Mohan

Quoting Mohanaraj <[EMAIL PROTECTED]>:

 

Dear all,

I have read that using mail() in a for loop to send a lot of emails (
around 1k-10k ) emails is not advised due to the fact that it can be
resource intensive hence or the script might take so much time that it
ti,es out. However what if i append all the emails into the Bcc: header
as follows and make only 1   call to mail.
1. Is this better?
2.Will it still be resource hungry?
3.What would be the best way to handle mailing to many email addresses
from PHP. This is for a newsletter (not SPAM) application I am working on.
4.How does this compare against using sockets to directly speak to the
SMTP server from a efficiency aspect?
The code I am planning on using (which I got online too ) is as follows :

$email = "[EMAIL PROTECTED]";
$subject = "test";
$body = "This is a test.";

$headers = "From: [EMAIL PROTECTED]";
$headers .= "Reply-to: [EMAIL PROTECTED]";
//the following willl have all the email addresses which will receive
the email
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "Bcc: [EMAIL PROTECTED]";
$headers .= "Bcc: [EMAIL PROTECTED]";
//..and so on...
$headers .= "Content-Type: text/plain; charset=iso-8859-1\n";

mail ($email, $subject, $body, $headers);





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



===
Michael Geier
CDM Sports, Inc. Systems Administration
  email: [EMAIL PROTECTED]
  phone: 314.692.3540
---
This email sent using CDM Sports Webmail v3.1
 [ http://webmail.cdmsports.com ]


 



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