Interops with Gmail - Email limit per day

Solarion

Honorary Master
Joined
Nov 14, 2012
Messages
28,055
Reaction score
17,810
I am using Interops and the client needs to send 2600 invoices in PDF format to customers. A previous system was buggy and ditched and this is management system for them. Please could you guys tell me how to get around that email limit as I do not want to get their account banned (They are using Gmail IMAP relay).

Much appreciate. This is the sub routing I am using FYI.
PHP:
Public Function SendEmail(mail_msg As MailMSG) As Boolean
        Try
            Dim oApp As New Microsoft.Office.Interop.Outlook.Application()
            Dim oMsg As Microsoft.Office.Interop.Outlook.MailItem = DirectCast(oApp.CreateItem(Microsoft.Office.Interop.Outlook.OlItemType.olMailItem), Microsoft.Office.Interop.Outlook.MailItem)

            oMsg.HTMLBody = mail_msg.Message
            oMsg.Attachments.Add(mail_msg.Attachments)

            ' Add a recipient.
            Dim oRecips As Microsoft.Office.Interop.Outlook.Recipients = DirectCast(oMsg.Recipients, Microsoft.Office.Interop.Outlook.Recipients)
            ' Change the recipient in the next line if necessary.
            Dim oRecip As Microsoft.Office.Interop.Outlook.Recipient = DirectCast(oRecips.Add(mail_msg.[To]), Microsoft.Office.Interop.Outlook.Recipient)
            oRecip.Resolve()
            oMsg.Send()

            releaseObject(oApp)
            releaseObject(oMsg)
            releaseObject(Nothing)
            releaseObject(oRecips)
            releaseObject(oRecip)

            Return True

        Catch error_t As System.Exception
            ErrorLogger.LogMessage("Test", "GlobalMethods", "SendEmail(mail_msg As MailMSG)", error_t.Message)
            Return False
            MessageBox.Show(error_t.Message)
        End Try
End Function
 
dont user Interops and use sendgrid, mandrill, etc instead?

or use a simple SMTP server like postfix (obvs postfix might be more complicated due to .net, but surely there is a windows solution)? obvs if this is an application running on the client, this might not be viable
 
One of the problems I have run into with SMTP is emails being sent into the spam/junk folder of the clients. Anyway let me have a look at those options thanks kabal.

This is running as a stand alone windows application btw.
 
One of the problems I have run into with SMTP is emails being sent into the spam/junk folder of the clients. Anyway let me have a look at those options thanks kabal.

This is running as a stand alone windows application btw.

Yes, SMTP will generally end up in spam, unless the recipient server can do a reverse lookup. This is fine if you are running a website on a dedicated server were the domain will resolve, and the STMP/postfix is also sending from that box.
 
Yes, SMTP will generally end up in spam, unless the recipient server can do a reverse lookup. This is fine if you are running a website on a dedicated server were the domain will resolve, and the STMP/postfix is also sending from that box.

Given me more than enough to go and do some research. Thanks a million kabal. Rep'd.
 
One of the problems I have run into with SMTP is emails being sent into the spam/junk folder of the clients. Anyway let me have a look at those options thanks kabal.

This is running as a stand alone windows application btw.

You can easily use AWS SES, add DKIM onto the domain, this will be a verified email not go to junk. I've done this with over 40 domains.
 
You can easily use AWS SES, add DKIM onto the domain, this will be a verified email not go to junk. I've done this with over 40 domains.

Yes, also had good experience with this at my previous company. You need to have a low bounce rate for this, but given that it is invoices to customers, should be fine.
 
So just setup a mail domain onto the companies domain and use AWS. Very easily done.

Going to give that a crack today. For now I am simply putting a Select Top 1900 (Email limit set at 2000 per day). Then the following day they must process the rest of the invoices which is another +- 700....just to split them up. They won't re-process as I am setting processed = 1
 
Going to give that a crack today. For now I am simply putting a Select Top 1900 (Email limit set at 2000 per day). Then the following day they must process the rest of the invoices which is another +- 700....just to split them up. They won't re-process as I am setting processed = 1

AWS SES Sandbox has a 200 day a limit i think, also you need to pre-allocate the destination emails, this is only for sandbox though.
 
Top
Sign up to the MyBroadband newsletter
X