Bulk Email


i want to create an email marketing tool for sending same email to my multiple clents, is it possible with your API? if yes how can i build and aspose email will help me?

Hi Max,

Thank you for contacting Aspose support team.

Aspose.Email provides rich feature to handle emails including sending the bulk emails. You may please use following sample code to send multiple emails. for more information about sending emails, please visit here.

static SmtpClient GetSmtpClient()
    SmtpClient client = new SmtpClient();
    client.Host = "smtp.gmail.com";
    //Specify your mail user name
    client.Username = "user@gmail.com";
    //Specify your mail password
    client.Password = "password";
    //Specify your Port #
    client.Port = 587;
    client.SecurityOptions = SecurityOptions.SSLExplicit;
    return client;

static void Email_Test()
    //Create SmtpClient as client and specify server, port, user name and password
    SmtpClient client = GetSmtpClient();
    //Create instances of MailMessage class
    //Specify To, From, Subject and Message
    MailMessage msg1 = new MailMessage("user@gmail.com", "recipient1@gmail.com", "Subject1", "message1, how are you?");
    MailMessage msg2 = new MailMessage("user@gmail.com", "recipient2@gmail.com", "Subject2", "message2, how are you?");
    MailMessage msg3 = new MailMessage("user@gmail.com", "recipient3@gmail.com", "Subject3", "message3, how are you?");
    //you can create as many instances of MailMessage class as you like.
    //Create an instance of MailMessageCollection class
    MailMessageCollection manyMsg = new MailMessageCollection();
    //Use client.BulkSend function to complete the bulk send task
        //Send Message using BulkSend method
        //Display ‘Message Sent’, only if message sent successfully
        Console.WriteLine("Message sent");
    catch (Exception ex)
    Console.WriteLine("Press enter to quit");

all mails are going in spam folder? is there any solution ?

Hi Max,

It depends on rules set on recipient server and it is not in the control of Aspose.Email while sending the mail. If you are using exchange server, you may please visit Manage Rules on Exchange Server to set Inbox rules. However this is to be set on the recipient server if access is available. You may please contact the mail server to configure the server as per the requirement.

Should you have any other query related to Aspose.Email, feel free to write us back here.