Mass Emails Getting Rejected by Google - gmail

I need help automating mass emails I'm sending daily.
I'm trying to send out automated mass emails through a Gmail account (My Business uses Google Apps). I built a Java program that allows me to enter my credentials (gmail username & password), Subject Line, Email List, and enter is a body template. The program then sends out emails one at a time to each of the contacts which are in a comma delimited list. This isn't spam as I'm getting the users to submit their email address.
I got this Mail Delivery Message today: "Technical details of permanent failure: Message rejected." I read that Google will only allow a maximum of 100 recipients to any message through its smtp gateway - and there's a maximum of 500 messages in any 24 hr period.
I need a new strategy. How do I build a program to automate sending of ~100-200 emails a day? Do I need to be buying IP's, SMTP Servers, write a new PHP application? I need a place to start because this is out of my scope.

Gmail is not designed for email marketing as you have seen. In the past I have used a Google App Engine account for sending tens to hundreds of thousands of emails (because that was where the domain was managed), but that can be a pain to manage.
You could consider using a service that specializes in email marketing. I have heard good things about Campaign Monitor and MailChimp. Plus MailChimp can integrate into Google Apps.

We use www.authsmtp.com but I was looking at switching to Google when we switch to Google Apps in the near future. I'll have to drill in a bit more. IN the meantime, give authsmtp a try.

Google specifically rejects this type of behavior/use of their system. https://support.google.com/mail/bin/answer.py?hl=en&answer=69585
I would suggest trying a system that is built for this type of activity such as MailChimp or Aweber.

Related

Sending Gmail as other user's in Workspace

Context
The company I work for is just now adopting a ticketing system for their IT help requests. Previously, all of our users have access to a Slack account and would start a message thread in an itsupport labeled channel to begin a "ticket". Now we would like users to send an email to an itsupport#company.com inbox which will then in turn create a ticket within the ticketing system. Since we know our end-users are going to still send Slack messages in the channel, I have been tasked with making an integration between Slack and a Google inbox designated for our help desk requests. The ticketing system is managed by an IT company we are contracted with, thus I am not the one integrating the Google Inbox and the ticketing system. I am only tasked with the integration between Slack and the mailing inbox.
Not sure if this context is needed, but I am currently using Node.js to capture the requests sent from Slack and then using Nodemailer to send the emails into the itsupport#company inbox.
Problem
The problem I have ran into (I found some questions related earlier but am having a hard time finding them now) is figuring out how to send an email on behalf on any user within our Google Workspace. For example, if Joe Schmo sends a message in the correct Slack channel, I would like to be able to send an email to the itsupport#company.com inbox as joe.schmo#company.com rather than my personal Google workspace account or through a generalized IT user account. How would I achieve this goal? I could change the "From" name however it would be preferred if I could send the email from any email address in our workspace.

Howto email notifications from your web application

What is the correct way to setup mail notifications from your web app in the cloud era? Previously I always had some SMTP server, which I could use for that purpose, but this time my company mail is hosted and there is a limit of 500 mails per day sent from certain address in this system, so with rather high chances I can hit that limit. My first thought was to use services like sendpulse or mailchimp, but it seems that all these services are built having mass marketing campaigns in mind and I'm concerned about security in case of sensitive emails, like password restore or details about orders. I spent several hours searching for solution in the web, but did not find anything reasonable.
Ideally the service I'm looking for would guarantee, that content of my messages would never be stored or shown to anyone, besides email this service might also be able to send SMS (for password restore case) and have integration with messengers.

Can the original source of an email detect when emails get autoforwarded?

I have a service, let's call it Trading Cool Stuff, that sends me emails on a daily basis. I set up an autoforward rule to send these emails to someone else, and that person does some NLP on those emails after reading them through gmail's API.
Can Trading Cool Stuff detect that these emails are autoforwarded?
The short answer is no, Gmail and most of the email services only track the emails until they reach the receiver's inbox. However, there is the possibility they are using some third-party software attached to the emails to track them.
Google Analytics offers the option to know when an email has been opened, but tracking the forwarding is not possible, at least from the Gmail API side.

My client need to send mailing lists, can server black listed as spam?

My client need to send 500 or 1000 e-mails to a list of registered members that subscribe to mailing list, can I marked as spammer and have problems with my shared ip blacklisted on spam lists or spammer in gmail, yahoo, outlook?
What the best way to send these e-mails from my server without risks of being marked as spam or get my ip black listed? Or I recommend them to not do that in any way?
No
You can send an email to 1000 different users. A lot of companies send millions of emails per month !
It first depends on your users
Users can mark the email as spam if you send it without their mutual consent or send 1000 mails to each, obviously !
But in your question you explain that your users have given their consent because they are subscribed to your mailing list, so thats good.
Secondly it depends on your mail content
It depends mainly on your mail content.
There are a plenty of different reasons that your content can be marked as spam.
some word in subject
the ratio text/image of your content (too much images can be consider as spam by mail client)
There are a lot of words which can marked your mail as spam by the mail client.
a non exhaustive words list : https://blog.hubspot.com/blog/tabid/6307/bid/30684/the-ultimate-list-of-email-spam-trigger-words.aspx
In a lot of cases, emailing services can be very useful
You can use service like MailChimp or SendGrid to send huge amount of emails. They have free tier plan to try their service.
e.g with SendGrid
Send up to 40,000 emails for the first 30 days and 100 emails per day free forever
with MailChimp
Forever Free
Up to 2,000 subscribers and 12,000 emails per month
Moreover they have a nicely done dashboard with a lot of information about your sent emails (spam report, devices, clicked mails, opened mails etc..)
Last recommendation
You can use a service different for your marketing mails and your transactional emails. So marketing emails don't impact the reputation of your transactional emails (they are more important than marketing mails)
I would use a third party API (SendGrid, MailChimp etc.) to send out those emails. Using a 3rd party API sends the emails directly to your audience's inbox and not to their junk or spam box.
However, if you are sending mail which is spam and people are marking those emails as spam, your reputation with that mailing service will go down.
There are many "bulk email" service providers out there. You would want to google and research your options as each one of them have their own emailing price plans.

How to create the contact of the sender automatically when the mail is received using Google Apps Script

I have signed up with Google Apps, I am using a third party SMTP Server to send the emails from the web app, Emails are reaching inbox for all the email clients (yahoo, gmail, hotmail...)
But Emails sent to my domain (mydomain.com) are reaching SPAM, This is happening only for my domain Which is google apps account domain. The solution to the problem is the sender must be in the contacts of the receiver. So its a overhead involved in adding the sender in the contacts before receiving the mail. This is not automated.
NOTE: Mails sent from <xyz#mydomain.com> to <abc#mydomain.com> are reaching SPAM. It means, Its happening only when the sender and receiver belongs to same domain.
ASSUMPTION: ALL the emails will be sent from mydomain.com .
So, I want to write a script using google apps script So that when a mail arrives from mydomain.com (having FROM address belongs to mydomain.com), The script must execute and add the senders emails address in the contacts. So it will avoid the spam rate.
I am very new to google apps script, Please help me doing this, Or if any better solution is there please feel free to post.
Vinay,
It sounds like you may have an incorrectly configured SPF record. Please see this article:
https://support.google.com/a/bin/answer.py?hl=en&answer=33786&topic=2759192&ctx=topic
Email that has a mydomain.com sender address, needs to come from a mail server listed in your SPF record or risk being sent to spam.
By chance, has Contact Sharing been enabled for your apps domain? I'm just offering this as an hunch that might help rather than a specific solution to your problem.
If this doesn't help, its a straightforward but non-trivial problem to add all your domain accounts to each others contacts list (and keeping it synced over time), but you'll be leaning heavily on a version of the Contacts API rather than plain Apps Script because the Contacts service only operates on the contacts of the user executing your script.

Resources