need to send email to 1000 addresses (currently in MS Excel)- what's the best way to do that, create a mail forma and paste ALL 1000 addresses in the TO field?

Ask a Question related to PHP Development, Design and Development.

  1. #1

    Default need to send email to 1000 addresses (currently in MS Excel)- what's the best way to do that, create a mail forma and paste ALL 1000 addresses in the TO field?



    NotGiven Guest

  2. Similar Questions and Discussions

    1. Email to different addresses
      Hi, I am designing a site for a company with dealers in different countries. For each product I have a 'request info' form with name, address,...
    2. collecting email addresses
      hi. I have a preview site up for my flash site that I am still building, but im wondering how to set up the preview so that people can enter their...
    3. What is the best way to send an email to ALL addresses in a dbase?
      I have an access 2002 dbase that contains a contact table. It is about 200 records and grows everyday. How could I send an email to ALL contacts at...
    4. Create electronic newsletters and email to all people(including webmail addresses) in an excel spreadsheet
      Hi Guys We are using Windows platform and Active perl in our organisation. We want to create electronic newsletters(which embed images/html as...
    5. Send Same E-mail To Multiple E-mail Addresses?
      "Ralph Swanson" <r.swanson@sbcglobal.net> wrote: You need one. First add all the Addresses to your Address Book, then go File > New Group and...
  3. #2

    Default Re: need to send email to 1000 addresses (currently in MS Excel)- what's the best way to do that, create a mail forma and paste ALL 1000 addresses in the TO field?

    Next time, try writing your message in the body, not in the subject line.
    Also, as a common courtesy, please include your name, or at least your
    handle, and email address. (It is smart to mask your email, such as "me AT
    domain DOT com" so that webcrawlers can't add it to spam lists.) Lastly,
    don't post a question that doesn't have anything to remotely do with PHP,
    to the PHP group. Posting to the proper group will not only get you a
    response faster, it will help keep the group on topic.

    Thanks,


    -Eric Kincl
    Eric Kincl Guest

  4. #3

    Default Re: need to spam 1000 people.

    There is a message body to type in you know.

    The best way is probably export it to a text file, an email address on every
    line, then get the file in php using file() and send an email to each one
    seperately.


    --
    Perfect Partner
    [url]http://www.PerfectPartner.tv/[/url]


    PP Guest

  5. #4

    Default Re: need to send email to 1000 addresses (currently in MS Excel)- what's the best way to do that, create a mail forma and paste ALL 1000 addresses in the TO field?

    Perhaps I did not post it correctly or explain myself well. Most people I
    email appreciate putting the question in the subject line so they know what
    I am asking for without reading the entire email. Live & learn.

    I'd like to quickly develop a way send email to about 1000 people using php.
    I thought about exporting the excel file to text then pasting & coding each
    line as an array then looping through the array with mail().

    Do you know of a quicker way?




    "Eric Kincl" <Eric@Kincl.net_NO_SPAM_> wrote in message
    news:3fbbf382@news.gvsu.edu...
    > Next time, try writing your message in the body, not in the subject line.
    > Also, as a common courtesy, please include your name, or at least your
    > handle, and email address. (It is smart to mask your email, such as "me
    AT
    > domain DOT com" so that webcrawlers can't add it to spam lists.) Lastly,
    > don't post a question that doesn't have anything to remotely do with PHP,
    > to the PHP group. Posting to the proper group will not only get you a
    > response faster, it will help keep the group on topic.
    >
    > Thanks,
    >
    >
    > -Eric Kincl

    NotGiven Guest

  6. #5

    Default Re: need to send email to 1000 addresses (currently in MS Excel)- what's the best way to do that, create a mail forma and paste ALL 1000 addresses in the TO field?

    NotGiven wrote:
    > Perhaps I did not post it correctly or explain myself well. Most people I
    > email appreciate putting the question in the subject line so they know
    > what
    > I am asking for without reading the entire email. Live & learn.
    >
    > I'd like to quickly develop a way send email to about 1000 people using
    > php. I thought about exporting the excel file to text then pasting &
    > coding each line as an array then looping through the array with mail().
    >
    > Do you know of a quicker way?
    >
    >
    >
    >
    > "Eric Kincl" <Eric@Kincl.net_NO_SPAM_> wrote in message
    > news:3fbbf382@news.gvsu.edu...
    >> Next time, try writing your message in the body, not in the subject line.
    >> Also, as a common courtesy, please include your name, or at least your
    >> handle, and email address. (It is smart to mask your email, such as "me
    > AT
    >> domain DOT com" so that webcrawlers can't add it to spam lists.) Lastly,
    >> don't post a question that doesn't have anything to remotely do with PHP,
    >> to the PHP group. Posting to the proper group will not only get you a
    >> response faster, it will help keep the group on topic.
    >>
    >> Thanks,
    >>
    >>
    >> -Eric Kincl
    Hey,
    I'm actually doing something to that extent right now. What it does is take
    a string (from a textarea... it simply strips the \n tags so php sees it as
    one huge string) and then it splits that string into an array of arrays.
    (the way it works it could easily stand for rows and columns of an excel
    sheet...) Here is the code I have so far. Keep in mind that I am actually
    working on it this exact moment, and it may not be perfect, it seems to
    work so far though for my means.

    function string2namesArray(){
    $Nsep = ";"; // Name separator
    $FLsep = ","; // Last/First name Separator

    if(isset($_REQUEST['names'])){
    $names = $_REQUEST['names'];

    // Compound the string - get rid of newlines, spaces, etc...
    $names = str_replace(" ", "", $names);
    $names = str_replace("\n", "", $names);
    $names = str_replace("\r", "", $names);
    // I forget which way it is on windows...
    $names = str_replace("\n\r", "", $names);
    $names = str_replace("\r\n", "", $names);
    $names = str_replace("\t", "", $names);

    // Strip last ";", if present
    // the last ";" apparently causes an extra array index that is unnessasary
    // BETA CODE
    if(strrpos($names, $Nsep) == (strlen($names) - 1)){
    $names = substr($names, 0, (strlen($names) - 1));
    }
    // END BETA CODE

    $namesArray = explode($Nsep, $names); // Split on ";" and make array
    $i = 0;
    while($namesArray[$i]){
    // split on "," and make an array inside of index [i]
    // Since there can only be first/last name, make max array length 2
    $namesArray[$i] = explode($FLsep, $namesArray[$i], 2);
    $i++;
    }
    return $namesArray;
    }
    }

    To give you an idea of what this program does, there is a textarea in which
    a person can enter a set of names in the following syntax:
    last, first;
    It then takes this list, and puts it into an array of arrays as follows:
    String = "last, first; last2, first2;"
    Array
    (
    [0] => Array
    (
    [0] => last
    [1] => first
    )

    [1] => Array
    (
    [0] => last2
    [1] => first2
    )

    )
    Newlines etc don't bother it. If you could modify this slightly (I think
    you just have to get rid of the "2" in this line:
    $namesArray[$i] = explode($FLsep, $namesArray[$i], 2);
    And that should do it... Also change the $FLsep and $Nsep to be whatever
    the row/column seperators are in the text file.

    Lastly, don't send multiple e-mails. This takes up a ton of bandwidth on
    your end. CC it, or even better, BCC it so that those being emailed can't
    see the other peoples email addresses. I don't know how to BCC in PHP, or
    even email in PHP. Check php.net for that info.

    Good Luck,


    -Eric Kincl
    Eric Kincl Guest

  7. #6

    Default Re: need to send email to 1000 addresses (currently in MS Excel)- what's the best way to do that, create a mail forma and paste ALL 1000 addresses in the TO field?

    thanks

    "Eric Kincl" <Eric@Kincl.net_NO_SPAM_> wrote in message
    news:3fbc0ad9@news.gvsu.edu...
    > NotGiven wrote:
    >
    > > Perhaps I did not post it correctly or explain myself well. Most people
    I
    > > email appreciate putting the question in the subject line so they know
    > > what
    > > I am asking for without reading the entire email. Live & learn.
    > >
    > > I'd like to quickly develop a way send email to about 1000 people using
    > > php. I thought about exporting the excel file to text then pasting &
    > > coding each line as an array then looping through the array with mail().
    > >
    > > Do you know of a quicker way?
    > >
    > >
    > >
    > >
    > > "Eric Kincl" <Eric@Kincl.net_NO_SPAM_> wrote in message
    > > news:3fbbf382@news.gvsu.edu...
    > >> Next time, try writing your message in the body, not in the subject
    line.
    > >> Also, as a common courtesy, please include your name, or at least your
    > >> handle, and email address. (It is smart to mask your email, such as
    "me
    > > AT
    > >> domain DOT com" so that webcrawlers can't add it to spam lists.)
    Lastly,
    > >> don't post a question that doesn't have anything to remotely do with
    PHP,
    > >> to the PHP group. Posting to the proper group will not only get you a
    > >> response faster, it will help keep the group on topic.
    > >>
    > >> Thanks,
    > >>
    > >>
    > >> -Eric Kincl
    >
    > Hey,
    > I'm actually doing something to that extent right now. What it does is
    take
    > a string (from a textarea... it simply strips the \n tags so php sees it
    as
    > one huge string) and then it splits that string into an array of arrays.
    > (the way it works it could easily stand for rows and columns of an excel
    > sheet...) Here is the code I have so far. Keep in mind that I am
    actually
    > working on it this exact moment, and it may not be perfect, it seems to
    > work so far though for my means.
    >
    > function string2namesArray(){
    > $Nsep = ";"; // Name separator
    > $FLsep = ","; // Last/First name Separator
    >
    > if(isset($_REQUEST['names'])){
    > $names = $_REQUEST['names'];
    >
    > // Compound the string - get rid of newlines, spaces,
    etc...
    > $names = str_replace(" ", "", $names);
    > $names = str_replace("\n", "", $names);
    > $names = str_replace("\r", "", $names);
    > // I forget which way it is on windows...
    > $names = str_replace("\n\r", "", $names);
    > $names = str_replace("\r\n", "", $names);
    > $names = str_replace("\t", "", $names);
    >
    > // Strip last ";", if present
    > // the last ";" apparently causes an extra array index
    that is unnessasary
    > // BETA CODE
    > if(strrpos($names, $Nsep) == (strlen($names) - 1)){
    > $names = substr($names, 0, (strlen($names) - 1));
    > }
    > // END BETA CODE
    >
    > $namesArray = explode($Nsep, $names); // Split on ";" and
    make array
    > $i = 0;
    > while($namesArray[$i]){
    > // split on "," and make an array inside of index
    [i]
    > // Since there can only be first/last name, make
    max array length 2
    > $namesArray[$i] = explode($FLsep, $namesArray[$i],
    2);
    > $i++;
    > }
    > return $namesArray;
    > }
    > }
    >
    > To give you an idea of what this program does, there is a textarea in
    which
    > a person can enter a set of names in the following syntax:
    > last, first;
    > It then takes this list, and puts it into an array of arrays as follows:
    > String = "last, first; last2, first2;"
    > Array
    > (
    > [0] => Array
    > (
    > [0] => last
    > [1] => first
    > )
    >
    > [1] => Array
    > (
    > [0] => last2
    > [1] => first2
    > )
    >
    > )
    > Newlines etc don't bother it. If you could modify this slightly (I think
    > you just have to get rid of the "2" in this line:
    > $namesArray[$i] = explode($FLsep, $namesArray[$i], 2);
    > And that should do it... Also change the $FLsep and $Nsep to be whatever
    > the row/column seperators are in the text file.
    >
    > Lastly, don't send multiple e-mails. This takes up a ton of bandwidth on
    > your end. CC it, or even better, BCC it so that those being emailed can't
    > see the other peoples email addresses. I don't know how to BCC in PHP, or
    > even email in PHP. Check php.net for that info.
    >
    > Good Luck,
    >
    >
    > -Eric Kincl

    NotGiven Guest

  8. #7

    Default Re: need to spam 1000 people

    "NotGiven" <noname@nonegiven.net> wrote in message
    news:<1BRub.430$zi3.301@bignews3.bellsouth.net>...
    >
    > need to send email to 1000 addresses (currently in MS Excel)-
    > what's the best way to do that, create a mail forma and paste
    > ALL 1000 addresses in the TO field?
    Assuming your mailing is properly solicited, the "To: " field
    should contain only one address, yours (just so that you can
    confirm that the message has in fact been sent). Recipient's
    addresses should go into the "Bcc: " field, separated by commas.
    This way, the size of outgoing message will be smaller, plus
    the receipients won't see who else received the mailing.

    As to "the best way", you forgot to tell us one thing: the best
    way to do WHAT? One-time mailing? Occasional mailings with
    human-generated content? Periodic mailings with database-
    generated content? Something else?

    Cheers,
    NC
    Nikolai Chuvakhin Guest

  9. #8

    Default Re: need to spam 1000 people

    Nikolai Chuvakhin wrote:
    > "NotGiven" <noname@nonegiven.net> wrote in message
    > news:<1BRub.430$zi3.301@bignews3.bellsouth.net>...
    >
    >>need to send email to 1000 addresses (currently in MS Excel)-
    >>what's the best way to do that, create a mail forma and paste
    >>ALL 1000 addresses in the TO field?
    >
    >
    > Assuming your mailing is properly solicited, the "To: " field
    > should contain only one address, yours (just so that you can
    > confirm that the message has in fact been sent). Recipient's
    > addresses should go into the "Bcc: " field, separated by commas.
    > This way, the size of outgoing message will be smaller, plus
    > the receipients won't see who else received the mailing.
    Good to know that that kind of spam won't reach me, as SMTP is blocking BCC
    mail, checking that the to address is really a user on the system to where the
    mail is sent.

    > As to "the best way", you forgot to tell us one thing: the best
    > way to do WHAT? One-time mailing? Occasional mailings with
    > human-generated content? Periodic mailings with database-
    > generated content? Something else?
    Just looking at the topic, seems to be one time spam and spam ain't nothing
    that people wants to have.


    //Aho

    J.O. Aho Guest

  10. #9

    Default Re: need to spam 1000 people.

    > The best way is probably export it to a text file, an email address on
    every
    > line, then get the file in php using file() and send an email to each one
    > seperately.
    I've done this when running PHP as a command-line program
    using telnet; however, I need to run the same program on a server with
    only ftp access. When I run the program as a web page, the connection
    times out before all of the E-mails are sent. So, I have no idea if
    it made it through the list or not.

    --
    Don Adams


    Don Adams Guest

  11. #10

    Default Re: need to spam 1000 people.

    On 2003-11-20, Don Adams <dga@sgi.com> wrote:
    >
    >> The best way is probably export it to a text file, an email address on
    > every
    >> line, then get the file in php using file() and send an email to each one
    >> seperately.
    >
    > I've done this when running PHP as a command-line program
    > using telnet; however, I need to run the same program on a server with
    > only ftp access. When I run the program as a web page, the connection
    > times out before all of the E-mails are sent. So, I have no idea if
    > it made it through the list or not.
    user@host: man screen

    Or write a little resume function.

    --
    verum ipsum factum
    Tim Van Wassenhove Guest

  12. #11

    Default Re: need to spam 1000 people.

    Don Adams wrote:
    >>The best way is probably export it to a text file, an email address on
    >
    > every
    >
    >>line, then get the file in php using file() and send an email to each one
    >>seperately.
    >
    >
    > I've done this when running PHP as a command-line program
    > using telnet; however, I need to run the same program on a server with
    > only ftp access. When I run the program as a web page, the connection
    > times out before all of the E-mails are sent. So, I have no idea if
    > it made it through the list or not.
    As webservers has a timeout limit and the php.ini has one too, which makes
    that scripts that takes to long without making any output will be timed out
    and not preform the whole spamming.

    Using Bbc: will increase the sped as you only send one mail, but luckylly SMTP
    servers starts to filter away Bbc: mails, as thise are today used mostly only
    by spammers (during a month 97% of all spam I got was Bbc:).


    //Aho

    J.O. Aho Guest

  13. #12

    Default Re: need to spam 1000 people.

    "J.O. Aho" <user@example.net> wrote in message
    news:bpj6m9$1o3lfb$1@ID-130698.news.uni-berlin.de...
    > Don Adams wrote:
    > >>The best way is probably export it to a text file, an email address on
    > >
    > > every
    > >
    > >>line, then get the file in php using file() and send an email to each
    one
    > >>seperately.
    > >
    > >
    > > I've done this when running PHP as a command-line program
    > > using telnet; however, I need to run the same program on a server with
    > > only ftp access. When I run the program as a web page, the connection
    > > times out before all of the E-mails are sent. So, I have no idea if
    > > it made it through the list or not.
    >
    > As webservers has a timeout limit and the php.ini has one too, which makes
    > that scripts that takes to long without making any output will be timed
    out
    > and not preform the whole spamming.
    >
    > Using Bbc: will increase the sped as you only send one mail, but luckylly
    SMTP
    > servers starts to filter away Bbc: mails, as thise are today used mostly
    only
    > by spammers (during a month 97% of all spam I got was Bbc:).
    >
    >
    > //Aho
    >
    Good thing you can set the max_execution_time to "0" in an .htaccess file or
    from within PHP :)


    jn Guest

  14. #13

    Default Re: need to spam 1000 people

    Right - it's a one time emailing to a known group of 1000 people. The email
    addresses are curently in Excel.



    "Nikolai Chuvakhin" <nc@iname.com> wrote in message
    news:32d7a63c.0311191833.5d28a5ac@posting.google.c om...
    > "NotGiven" <noname@nonegiven.net> wrote in message
    > news:<1BRub.430$zi3.301@bignews3.bellsouth.net>...
    > >
    > > need to send email to 1000 addresses (currently in MS Excel)-
    > > what's the best way to do that, create a mail forma and paste
    > > ALL 1000 addresses in the TO field?
    >
    > Assuming your mailing is properly solicited, the "To: " field
    > should contain only one address, yours (just so that you can
    > confirm that the message has in fact been sent). Recipient's
    > addresses should go into the "Bcc: " field, separated by commas.
    > This way, the size of outgoing message will be smaller, plus
    > the receipients won't see who else received the mailing.
    >
    > As to "the best way", you forgot to tell us one thing: the best
    > way to do WHAT? One-time mailing? Occasional mailings with
    > human-generated content? Periodic mailings with database-
    > generated content? Something else?
    >
    > Cheers,
    > NC

    NotGiven Guest

  15. #14

    Default Re: need to spam 1000 people

    "NotGiven" <noname@nonegiven.net> wrote in message
    news:<VOBvb.1651$6c3.1461@bignews1.bellsouth.net>. ..
    >
    > it's a one time emailing to a known group of 1000 people.
    > The email addresses are curently in Excel.
    Then why bother with PHP at all? Copy the Excel column
    of e-mail addresses to Clipboard, paste it into any text
    editor that can find end-of-line characters (incidentally,
    Word will do), replace end-of-line characters with ', '
    (comma plus space), copy to Clipboard again, and paste into
    the "Bcc: " field of your regular e-mail software...

    Cheers,
    NC
    Nikolai Chuvakhin Guest

  16. #15

    Default Re: need to spam 1000 people

    Nikolai Chuvakhin wrote:
    > "NotGiven" <noname@nonegiven.net> wrote in message
    > news:<VOBvb.1651$6c3.1461@bignews1.bellsouth.net>. ..
    >
    >>it's a one time emailing to a known group of 1000 people.
    >>The email addresses are curently in Excel.
    >
    >
    > Then why bother with PHP at all? Copy the Excel column
    > of e-mail addresses to Clipboard, paste it into any text
    > editor that can find end-of-line characters (incidentally,
    > Word will do), replace end-of-line characters with ', '
    > (comma plus space), copy to Clipboard again, and paste into
    > the "Bcc: " field of your regular e-mail software...
    >
    > Cheers,
    > NC
    And that, my freinds, deserves the "solution of the week" award ;)

    he he he...


    Terence Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139