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

  • Home
  • SEARCH
  • 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 8820341
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T05:35:06+00:00 2026-06-14T05:35:06+00:00

I made a Razor MVC3 website, from which I can send E-Mails. I made

  • 0

I made a Razor MVC3 website, from which I can send E-Mails.

I made a service that gets all the users and emails information, and starts a thread that sends formatted emails.
I made my own threadpool.

On my computer everything work perfectly. I send emails every second.
But when I deploy my website on my Amazon server ec2, the email sending becomes so slow around (3min/mail) and fails half of my emails.

The amazon server is far more powerful than my computer. Same for the bandwidth.
I dont know if it is an IIS or a thread configuration than I missed.

Any ideas?

//—————– Code send email————————

using (SmtpClient smtp = new SmtpClient()
{
      Host = serverSMTP,
      Port = 25,
      EnableSsl = false,
      DeliveryMethod = SmtpDeliveryMethod.Network,
      Credentials = new NetworkCredential(senderAddress.Address, carteiraPassword),
      Timeout = 10000
 })
 {
      ServicePointManager.ServerCertificateValidationCallback = delegate(object s, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) { return true; }; //test
      smtp.Send(message);
 }

//—————–class thread————————

public class MyThread
{
    #region Param
    public string Id { get; set; }
    public RunNewThread RunThreadDelegate;        
    private System.Threading.Thread Thread { get; set; }
    #endregion

    public SiscobThread(RunNewThread RunThreadDelegate)
    {
        this.RunThreadDelegate = RunThreadDelegate;
    }

    public void Init()
    {
        this.Thread = new System.Threading.Thread(this.RunThread);
        MsgManager.Instance.SendError("Thread born " + this.Id, null);
    }

    private void RunThread()
    {
        this.RunThreadDelegate();
    }

    public void Start()
    {
        this.Thread.Start();
    }

    public void Stop()
    {
        this.Thread.Abort();
    }
}
  • 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-14T05:35:07+00:00Added an answer on June 14, 2026 at 5:35 am

    Check with Amazon. I’m pretty sure they throttle outbound email connections unless you fill out a form with them stating the purpose of the emails in your application.

    This is there to make it a little more difficult for spammers to simply spin up new instances and broadcast their garbage.

    I looked a little closer:
    http://aws.amazon.com/ec2/faqs/#Are_there_any_limitations_in_sending_email_from_EC2_instances

    Per Amazon:

    Yes. In order to maintain the quality of EC2 addresses for sending
    email, we enforce default limits on the amount of email that can be
    sent from EC2 accounts. If you wish to send larger amounts of email
    from EC2, you can apply to have these limits removed from your account
    by filling out this form.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I made an iphone app to capture image from camera and to set that
I made a Web service in which I have a function to count some
I made a UITableViewCell and I have 20 rows in that table in which
I made myself a template for all JSPs in my webapp that keeps things
I am working on a project which adopted ASP.NET MVC3(Razor) tech. Now, I have
I have one web application made using MVC3 Razor. Application starts properly in browser
I made a widget which reads an image from internal storage and displays it
I made a class that derives from Component: public class MyComponent: System.ComponentModel.Component { }
I'm creating a website using MVC3, I'm using the razor syntax to create the
i have made an application in asp.net mvc3/c#/Razor , now i want to implement

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.