MailBee.NET Queue  

Submitting e-mails to MailBee.NET Queue

Basics

MailBee.NET Queue consumes e-mails to be sent as .EML files. The .EML extension denotes files in MIME format. This format is widely supported by most e-mail systems so you can use not only MailBee.NET Objects and MailBee Objects but virtually any MIME-capable software to feed MailBee.NET Queue.

MailBee.NET Queue also supports special MIME headers x-sender and x-receiver. They allow you to override From and To/CC/BCC values in the e-mail. Example of the message header section containing such headers (produced with MailBee.NET Objects):

x-sender: returnpath@domain.com
x-receiver: george@competing-company-2.com
x-receiver: alice.smith@competing-company-1.com
MIME-Version: 1.0
X-Mailer: MailBee.NET 9.0.2.472
From: "John Doe"
To: undisclosed recipients
Subject: Test e-mail 2
Date: Fri, 30 Jan 2015 14:02:40 -0500
Message-ID: <1.7d974c67506d1a456cf8@server>
Content-Transfer-Encoding: quoted-printable
Content-Type: text/html

Using MailBee.NET Objects to submit e-mails

Besides the source code of MailBee.NET Queue itself, there are some VB and C# sample projects including sending a single e-mail in a number of ways and mail merge over database. You can find them in MailBeeNetQueue/Source/Samples folder of "My Documents" (or just click "Browse Samples" buttons in "MailBee.NET Queue Start Menu").

For mail merge samples, be sure you have the proper MS Access driver (the samples contain the details on that). Using MS Access is not a requirement, MailBee.NET Objects can do mail merge over any data source, it's just how that samples are implemented to be self-contained and independent from external data sources like SQL Server.

Another source of examples is the code snippets which appear in MailBee.NET Objects Documentation on Smtp.SubmitToPickupFolder and Smtp.SubmitJobsToPickupFolder methods, and in MailBee.NET Objects Developer's Guide: Submit to MailBee.NET Queue for increased or limited throughput.

The main idea is that you compose an e-mail and then call a method like Smtp.SubmitJobsToPickupFolder to write .EML file to the folder from where MailBee.NET Queue can then pick up the file, read the contained e-mail and send it out. The pickup folder location depends on MailBee.NET Queue configuration (you can easily change it) and by default is "C:\MailBeeNetQueue Files\Pickup".


Send feedback to AfterLogic

Copyright © 2011-2023 AfterLogic Corporation. All rights reserved.