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 9214625
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T02:00:42+00:00 2026-06-18T02:00:42+00:00

I am trying to send very large emails out, usually are in the range

  • 0

I am trying to send very large emails out, usually are in the range of 3 MB but can be larger. The problem is that our adsl line isn’t always very stable in terms of performance and our email hosting changed from a local solution to a remote one. This means that by using the normal C# send method I keep reaching the timeout reached exception. And I do not want to just increase the timeout. For a 3Mb email to upload succeed I need a timeout of 400 sec.

Following answer here
now I can get the emails to send via the local smtp service, but only if I don’t attach an attachment. If the attachment is in the area of 3Mb its fails outright. If it’s small it fails when I try to pull the email down with outlook.

I did remove the max file attachment size from the smtp service. Any other setting or so I could have gotten wrong?

And if it helps the pc that runs is smtp service is a virtual machine running win 2008 on a pc running win 7.

  • 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-18T02:00:43+00:00Added an answer on June 18, 2026 at 2:00 am

    I fixed it using SendAsync, and used it as follows

    I put all my emails in a Fifo list.
    After I added new emails I remove one and try to send it.
    This is my send function

    public void Sender()
        {
            if (Globalcls.Message_list.Count == 0)
                return;
            SmtpClient client = new SmtpClient();
            client.Credentials = new System.Net.NetworkCredential(Globalcls.settings.username, Globalcls.settings.password);
            client.Port = Convert.ToInt32(Globalcls.settings.portS);
    
    
            client.Host = "smtp.xdsl.co.za";
    
            client.SendCompleted += new SendCompletedEventHandler(MailSendCallback);
    
            if (Globalcls.Message_list.Count > 0)
            {
                try
                {
                    client.SendAsync(Globalcls.Message_list[0].msg, "1");
    
    
                }
                catch (Exception ex)
                {
                    //do exception stuff here, only cut here to make post shorter
                }
            }
    
     static void MailSendCallback(object sender, AsyncCompletedEventArgs arg)
        {
            // oncomllete event for async send.
            if (arg.Error != null)
            {
                //mail did not send, here I do not remove it and increment an counter so  to delete a mail that keeps failing
            }
            else
            {
    
                Form1 frm1 = new Form1(); 
                frm1.que("email sent to " + Globalcls.projects[Globalcls.Message_list[0].project].name);
                frm1.Dispose();
                Globalcls.Message_list[0].msg.Dispose();
                foreach (string meh in Globalcls.Message_list[0].files)
                    File.Delete(meh);
                Globalcls.Message_list.RemoveAt(0);
            }
            if (Globalcls.Message_list.Count > 0)
            {
                Form1 frm2 = new Form1();
                frm2.Sender();
                frm2.Dispose();
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a very simple workflow that is just trying to send an email
So I have this very basic program that is trying to send an e-mail,
I am trying to limit my application send rate to 900kbps but the problem
I am trying to send some very large files (>200MB) through an Http output
I'm trying to send out a very simple ASIHTTPRequest with https. Although I have
Trying to send a complex type between two systems that have the same code
I am trying to send emails from smtps (secure smtp) using Indy and the
I am trying to send an email using the following very standard code. However,
I'm trying to send out a Plain/HTML multipart email out and I'm currently using
I'm trying to send a very basic XML string from a Windows Phone application

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.