Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread John Nichel
[EMAIL PROTECTED] wrote:
I'm sending out a mail, en mass to about 25 people, using the while loop from a MySQL query...
You could send out just one mail, and put all the names in the BCC 
field.  Save yourself a few SMTP connections.  I think there's a limit 
to how many addresses you can have in a field but you should be safe 
with a small number like 25 (if not, you can break it up into like 3 
emails).

Anyhoo,
In the mail() function, if I use the final field for the From: attribute.
I'm having probs...
 
HAving:
...From: [EMAIL PROTECTED]); doesn't work on all recipients... BUT..
... From: justaname); Works on others... but not all...?
 
Surely this can't be? I've never come accross this before?
Any ideas what's up?
My guess would be that it's on the client end.  Have you tried 
formatting it like this...

From: John Doe [EMAIL PROTECTED]
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread John Nichel
[EMAIL PROTECTED] wrote:
I've tried just having a name, and it still doesn't reach my notes based 
E-mail... :-(
Hmmm, also, how do you specify to send in the BCC field, using the 
mail() function?
In the headers
http://us4.php.net/manual/en/function.mail.php
mail ( to, subject, message [, additional_headers [, 
additional_parameters]])

There are examples on the manual page.
--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Tristan . Pretty
I've tried just having a name, and it still doesn't reach my notes based E-mail... :-(
Hmmm, also, how do you specify to send in the BCC field, using the mail() function?
 
All in all, we're getting there..!
 

 
-John Nichel [EMAIL PROTECTED] wrote: -


To: [EMAIL PROTECTED]
From: John Nichel [EMAIL PROTECTED]
Date: 08/13/2004 01:52PM
Subject: Re: [PHP] mail() and the From: attribute...

[EMAIL PROTECTED] wrote:
 I'm sending out a mail, en mass to about 25 people, using the while loop from a 
 MySQL query...

You could send out just one mail, and put all the names in the BCC 
field.  Save yourself a few SMTP connections.  I think there's a limit 
to how many addresses you can have in a field but you should be safe 
with a small number like 25 (if not, you can break it up into like 3 
emails).

 Anyhoo,
 In the mail() function, if I use the final field for the From: attribute.
 I'm having probs...
  
 HAving:
 ...From: [EMAIL PROTECTED]); doesn't work on all recipients... BUT..
 ... From: justaname); Works on others... but not all...?
  
 Surely this can't be? I've never come accross this before?
 Any ideas what's up?

My guess would be that it's on the client end.  Have you tried 
formatting it like this...

From: John Doe 

-- 
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***


Re: [PHP] mail() and the From: attribute...

2004-08-13 Thread Stephan Fiedler
Hi Tristan,
[EMAIL PROTECTED] wrote:
HAving:
...From: [EMAIL PROTECTED]); doesn't work on all recipients... BUT..
... From: justaname); Works on others... but not all...?
 
Surely this can't be? I've never come accross this before?
Any ideas what's up?
 
Well, what I do when sending mail with a spoofed sender, I do like this:
$olduser = getenv(USER);
putenv(USER=$user_i_want_act_as_for_mass_mailing);
do
{
mail(.);
}while($there_are_more_Addresses_to_spam_at);
putenv(USER=$olduser);
Not quite sure, whether I used setenv or putenv, I'm sure U'll find out.
AND: bweare sending spam to ME ;o)
Tris...
Stephan
*
The information contained in this e-mail message is intended only for 
the personal and confidential use of the recipient(s) named above.  
If the reader of this message is not the intended recipient or an agent
responsible for delivering it to the intended recipient, you are hereby 
notified that you have received this document in error and that any
review, dissemination, distribution, or copying of this message is 
strictly prohibited. If you have received this communication in error, 
please notify us immediately by e-mail, and delete the original message.
***

THIS is really funny in a mailing list :o)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php