Results 1 to 10 of 10
  1. #1
    Join Date
    Jan 2008
    Location
    Stoke-on-Trent
    Posts
    59

    Default Sending Email using php Mail() - issues

    I've got about 1100 email addresses for members and I want to send them all an email. The plan is I'll upload a csv text document then use a php script to stick the addresses in an array. Then I'll do a simple foreach {} statement to insert the 'to address' into a mail() statement.

    Am I likely to run into any problems doing this? In particular, will sending so many emails result in the domain being blacklisted as spamming? Would it be more sensible to do it for records 1 to 50, then wait 5 minutes, then do 51 to 100 etc?

    Its only a short text-based email (not html formatted) and the From: header will match the domain name. I'm on the Puma server if that helps. Would rather not install any mailing system/software as its not worth it for what I plan to do.

    Any help/comments much appreciated.

  2. #2
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    Hey Paul. I think sending out so many emails at the same time from a shared server will run into problems and I think that number is above what eUKhost allow of a shared account. Although you should double check or wait for someone from eUKhost to post to clarify this information but I don't think it will be allowed. I think you would have to send so many an hour or so many a day.
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  3. #3
    Join Date
    Sep 2005
    Posts
    6,039

    Default

    Hi Paul,

    You should consider phplist for this task as phplist is preferred by many online users who need to send hundreds of emails daily to their subscribers. You can install phplist from fantastico or download it directly from phplist.com and install it manually.

    You should not send 1100 emails in one go as it will create problems for your domain. phplist will help you to make batch of emails and send those in internal of 30 - 60 minutes.
    UK Web Hosting || Business Hosting || eUKhost Knowledgebase
    Toll Free : 0808 262 0255 || Skype : mark_ducadi
    A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
    __________________________________________________

    Please email cmo[at]eukhost.com if you have any questions or need my assistance

  4. #4
    Join Date
    Apr 2007
    Location
    Manchester, United Kingdom
    Posts
    8,440

    Default

    I have actually used phpList in the past (not sure why I didn't think of it) and its easy to install from Fantastico and has a quite useful admin panel .
    David Smith
    DPS Computing
    http://www.dpscomputing.com (Computing, Reviews, News) - We're still plodding on adding new content and features (August 2011)
    http://www.djdavid.co.uk - Massive update! (September 2011) - It's now not neglected!!
    http://davidsmith.dpscomputing.com (My Personal Website) - New Site (10/2009)

  5. #5
    Join Date
    May 2007
    Location
    Cambridge, UK
    Posts
    1,593

    Default

    Yeah, both PHPList and Mailman would work for this. If you're on shared hosting I would use PHPList for this as you can throttle the number of emails per hour to match the eUK T&Cs.
    Jonathan Crass
    Joint Partner in Checker Design
    Joint Partner in Jst Hosting

    UK Website design
    UK based monitoring
    Cheap UK Web Hosting

    eUKhost Forum Moderator

  6. #6
    Join Date
    Dec 2008
    Posts
    8

    Default

    <?php
    $to = "recipient@example.com";
    $subject = "Hi!";
    $body = "Hi,\n\nHow are you?";
    if (mail($to, $subject, $body)) {
    echo("<p>Message successfully sent!</p>");
    } else {
    echo("<p>Message delivery failed...</p>");
    }
    ?>

    Hope it will be useful for you...

  7. #7
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Smile

    Hmm, here's a sample working PHP mail script.. working on both, Linux & Windows web-hosting servers
    PHP Code:
    <?php
    $mail_to
    ="recipient@example.com";
    $mail_subject="Hello";
    $mail_from="sender@example.com";
    $mail_body_client="Test email sent by PHP's mail() function";
    mail($mail_to,$mail_subject,$mail_body_client,"FROM:"$mail_from);
    ?>

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

  8. #8

    Default

    Hi

    Guys whats the limit. i mean how many emails can i send and what time.

  9. #9
    Join Date
    Oct 2006
    Location
    localhost
    Posts
    3,375

    Smile

    Quote Originally Posted by mak2204 View Post
    Hi

    Guys whats the limit. i mean how many emails can i send and what time.
    Here are the exact details:

    Shared server : 200 emails per hour.
    VPS : 500 emails per hour.
    Semi Dedicated server : 750 emails per hour.
    Dedicated server : 3600 emails per hour.

    Rock _a.k.a._ Jack
    Windows Hosting || Windows Reseller Hosting
    Cloud Hosting 100% UPTIME! || Powerful Dedicated Servers
    Follow eUKhost on Twitter || Join eUKhost Community on Facebook

    For complaints, grievances or suggestions kindly email our FeedBack Dept.
    Proper action will be taken accordingly & instantaneously!

  10. #10
    Join Date
    Dec 2010
    Posts
    13

    Default

    Hi,
    both PHPList and Mailman would work for this. If you're on shared hosting I would use PHPList for this as you can throttle the number of emails per hour to match the eUK T&Cs.
    Best regards!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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