Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8419861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T02:43:56+00:00 2026-06-10T02:43:56+00:00

I need to send over 2000 mails and I am using Swift Mailer library

  • 0

I need to send over 2000 mails and I am using Swift Mailer library for it.

We have own server and it has both SMTP and sendmail transports. I am using SMTP:

$transport = Swift_SmtpTransport::newInstance('localhost', 25);

All mails are send fine to few people, but I’m afraid that we will be banned when we send mass mail.
I don’t really know what means “banned” and how it looks like, but I’m afraid about the aftermath.

So, is it true, that such “ban” exists and how to implement mass mailing with Swift Mailer in a right way?

P.S.: My code looks like:

    // Create the Transport
    $transport = Swift_SmtpTransport::newInstance('localhost', 25);

    // Create the Mailer using your created Transport
    $mailer = Swift_Mailer::newInstance($transport);

    // Create a message
    $message = Swift_Message::newInstance($message_theme)
      ->setFrom(array($sender => $name))
      ->setTo($emails)
      ->setBody($message_text,"text/html")
      ;
    try {
        // Send the message
        $result = $mailer->send($message);
    }
    catch(Exception $e) {
        echo "Error: ".$e->getMessage();
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T02:43:57+00:00Added an answer on June 10, 2026 at 2:43 am

    As I’m hoping you will not use this for spam!!!

    Here are some things to do:

    • try to same different Emails (change name of the recipient in body)
    • send emails once every 3-4 seconds and not 100 emails/second – it should send 2000 emails in about 2-3 hours.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have defined a custom struct which I need to send over to another
I need to send data to a hardware device over serial port. I'm using
I have a slow connection that I need to send a PNG image over
I need to send out ~2000 emails via a sendmail server to email addresses
I am building a service using WCF and I need to send over images.
I have a list of objects List that I need to send over a
I'm using Apache Axis2 and need to send a custom XML structure over SOAP
I need to send data over the wire using TCP as a transport layer,
I have an array of float that I need to send over TCP/IP, the
I need to send several commands over telnet to a server. If I try

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.