Home > Archive > PHP Programming > August 2005 > send email to 9000 users
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
send email to 9000 users
|
|
| I_love_php 2005-08-28, 9:55 pm |
| What is the best way to send one email to 9000 users without them
getting it in Junk mail ?
Please help me with ur ideas
| |
| Alvaro G Vicario 2005-08-29, 3:55 am |
| *** I_love_php wrote/escribió (28 Aug 2005 19:19:16 -0700):
> What is the best way to send one email to 9000 users without them
> getting it in Junk mail ?
Sending mail to 1 or 9000 recepients won't make any difference (given that
you don't write all addresses in the "To" field). Your mail won't be
classified as spam if it doesn't look like spam. Some clues I can think of:
* Use a real name and address as sender
* Use a descriptive subject line
* Avoid HTML is possible
* Write your own message body, rather than leaving the typical PHP forum
one-liner.
In any case, there'll always be a certain amount of rejected messages since
some mail servers (such as Hotmail, unless they finally solved it) simple
delete all mail from certain domains.
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
| |
| kerul4u 2005-08-29, 7:55 am |
| Alvaro G Vicario is right.
you can use below method..
//Create array
$contactname = array("firstname","secondname",....);
$contactemail = array("firstemail","secondemail",....);
//or create array from database if you have below is example
$contact_res = mysql_query("select name, email from user");
$j=0;
$count = mysql_num_rows($contact_res);
while($row = mysql_fetch_array()){
$contactname[$j] = $row['name'];
$contactemail[$j] = $row['email'];
$j++;
}
//End creating array
//Start emailing to customers
for($i=0;$i<$count;$i++){
$message = " Your Message here";
$myname = 'Kerul Patel';
$myemail = 'kerul4u@gmail.com';
$headers .= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: ".$myname." <".$myemail.">\r\n";
$headers .= "To: ".$contactname[$i]." <".$contactemail[$i].">\r\n";
$headers .= "Reply-To: ".$myname." <$myemail>\r\n";
$headers .= "X-Priority: 1\r\n"; // this helps to avoid to get into
bulk or spam mail
$headers .= "X-MSMail-Priority: High\r\n";
$headers .= "X-Mailer: Marriage.com Email Server";
@mail($contactemail[$i],$subject,$messag
e,$headers);
}
//End
KERUL
[ProDesignZ]
| |
| kerul4u 2005-08-29, 7:55 am |
| sorry
while($row = mysql_fetch_array()
replace with
while($row = mysql_fetch_array($contact_res)
KERUL
[ProDesignZ]
| |
| I_love_php 2005-08-29, 6:56 pm |
| Thanks guys but the problem is most of my target users are using
hotmail and yahoo .. and i want to send to them a really important
message about my site
| |
| fekr_e_berehneh@hotmail.com 2005-08-29, 6:56 pm |
| you must check the priority option of email setting of these web
services like yahoo and msn
| |
| Malcolm Dew-Jones 2005-08-29, 6:56 pm |
| Alvaro G Vicario (alvaro_QUITAR_REMOVE@telecomputer.com) wrote:
: *** I_love_php wrote/escribió (28 Aug 2005 19:19:16 -0700):
: > What is the best way to send one email to 9000 users without them
: > getting it in Junk mail ?
: Sending mail to 1 or 9000 recepients won't make any difference (given that
: you don't write all addresses in the "To" field).
No? google for DCC. Mail volume can easily be used as a criteria for spam,
even when the recipients are at multiple sites.
: Your mail won't be
: classified as spam if it doesn't look like spam. Some clues I can think of:
: * Use a real name and address as sender
: * Use a descriptive subject line
: * Avoid HTML is possible
: * Write your own message body, rather than leaving the typical PHP forum
: one-liner.
All good advice.
: In any case, there'll always be a certain amount of rejected messages since
: some mail servers (such as Hotmail, unless they finally solved it) simple
: delete all mail from certain domains.
There is no problem to solve. Certain domains have decided that sending
spam is more important to them than sending regular mail, and other
domains have chosen not to accept mail from them. If you wish to send
regular mail then you need to send it from a domain that cares about the
business of sending regular mail.
--
This programmer available for rent.
| |
| Alvaro G Vicario 2005-08-30, 3:55 am |
| *** Malcolm Dew-Jones wrote/escribió (29 Aug 2005 13:31:04 -0800):
> Alvaro G Vicario (alvaro_QUITAR_REMOVE@telecomputer.com) wrote:
> : Sending mail to 1 or 9000 recepients won't make any difference (given that
> : you don't write all addresses in the "To" field).
>
> No? google for DCC. Mail volume can easily be used as a criteria for spam,
> even when the recipients are at multiple sites.
Do you mean "Distributed Checksum Clearinghouse"? It looks like a spam
filtering algorithm. I'll read about it.
> : In any case, there'll always be a certain amount of rejected messages since
> : some mail servers (such as Hotmail, unless they finally solved it) simple
> : delete all mail from certain domains.
>
> There is no problem to solve. Certain domains have decided that sending
> spam is more important to them than sending regular mail, and other
> domains have chosen not to accept mail from them.
IMHO, these sort of "antispam" rules are bad for several reasons:
* They lose a percentage of legitimate mail that varies from 10% to 100%.
In computer science, data loss is a bug, not a feature.
* The don't let users decide. Most often, they don't let user even know
some of their mail is being destroyed (of course they don't: users would
run away from such a messy mail provider).
* They're often badly implemented. I've seen sites that reject all mail
with an "X-Mailer: The Bat!" header.
Of course, that's my opinion. I don't want my ISP to decide what I can read
or not ;-)
--
-- Álvaro G. Vicario - Burgos, Spain
-- http://bits.demogracia.com - Mi sitio sobre programación web
-- Don't e-mail me your questions, post them to the group
--
| |
| kerul4u 2005-08-30, 3:55 am |
| Hi,
plz check below line
$headers .= "X-Priority: 1\r\n"; // this helps to avoid to get into
bulk or spam mail
it helps you when sending to hotmail or yahoo user
KERUL
[ProDesignZ]
| |
| Darkstar 3D 2005-08-30, 7:55 am |
| I've never had trouble sending a "reasonable" amount of messages to
hotmail or yahoo. Of course, the people I send to, signed up with me to
receive the messages so they never click on that this is spam button.
Which is perhaps the first step in identifying an offending domain.
| |
| Malcolm Dew-Jones 2005-08-30, 6:56 pm |
| Alvaro G Vicario (alvaro_QUITAR_REMOVE@telecomputer.com) wrote:
: *** Malcolm Dew-Jones wrote/escribió (29 Aug 2005 13:31:04 -0800):
: > Alvaro G Vicario (alvaro_QUITAR_REMOVE@telecomputer.com) wrote:
: > : Sending mail to 1 or 9000 recepients won't make any difference (given that
: > : you don't write all addresses in the "To" field).
: >
: > No? google for DCC. Mail volume can easily be used as a criteria for spam,
: > even when the recipients are at multiple sites.
: Do you mean "Distributed Checksum Clearinghouse"? It looks like a spam
: filtering algorithm. I'll read about it.
Yes. The software is used to count similar looking messages. There are
public servers that you can access, and large ISP's (such as an AOL) or
agencies like a government, would normally have their own DCC servers
which may or may not share count data with the public servers.
They don't detect spam as such. They count the number of times each
similar message is seen. Spam typically counts very high, but legitimate
mail lists also count very high. What to do with the statistics is up to
the user. I think you'll find that spamassassin has the option of using
this in its calculations, as one example of usage. If it looks like it
might be spam and has a high count then it is spam. Another use is to
detect similar messages in conjunction with spam traps. If a message is
seen in a spam trap then all similar messages (as detected by DCC) are
then rejected for all users on a mail system.
--
This programmer available for rent.
|
|
|
|
|