We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Seding 100 Bulk Message is slower vs Sending 100 BCC recipients

I am seeing very slow performance in sending bulk email messages using the following code below (Also tried sending asynchronously but have different issue)

        MailMessageCollection MsgColl = new MailMessageCollection();
        using (var client = new SmtpClient())
        {
            string email = "abc@xyz.com";
            object token = new object();
            int count = 100;
            MailAddressCollection MaAdColl = new MailAddressCollection();
            sw.Start();
            while (count > 0)
            {
                MailMessage msg = new MailMessage(email, email, "Test" + count, mailMessage.Body);
                MsgColl.Add(msg);
                //MaAdColl.Add(email);
                client.Host = smtpServer;
                client.AuthenticationMethod = SmtpAuthentication.None;                   
                     
                count--;
            }
            //mailMessage.Bcc = MaAdColl; 
              //client.Send(mailMessage); //bcc email sending for 100 recipients               
            
            client.BulkSend(MsgColl); // bulk message sending
        
            sw.Stop();
            long TimeElapsed = sw.ElapsedMilliseconds;
            
        }

Sending bulk messages is lot slower than adding 100 recipients in “BCC” field and sending one email. The reason why I have to do bulk messages was there is req. for customizing the message for every user. Any help would be appreciated.

Hi Rajesh,


Thank you for posting your inquiry.

It seems that you are using an older version of the API as BulkSend has been marked as Deprecated in the latest version of the API we are testing this issue with. Please use the latest version of the API and use the Send(MailMessageCollection) method instead of Send method to test the issue at your end.

We have tested the issue at our end with the latest version of the API and the difference for sending out the messages with different message bodies is just 45 secs that we assume is due to the difference in messages bodies. Please test the issue at your end with the latest version of the API and share your feedback with us for further assistance.