function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Spencer EsseySpencer Essey 

Using Gmail API to send mass email from Salesforce

Hi there, 

We are looking for someone who would be able to create a way for us to send mass email from a list view in Salesforce by making a call with the Gmail API and routing the emails through our Gmail domain servers instead of through Salesforce.  The limitations of Salesforce mass email have hamstrung our sales process and we need an easy way to let our reps pick a set of Contacts from a list and compose an email to them from within Salesforce that will authenticate againest the users Gmail and send the emails through Gmail.  

I have looked through the documentation so I know it's possible, but unfortunatley we don't have the internal coding resources to handle this.  Would any body out in the communtiy care to bid for the job?

Thanks and please feel free to respond with any questions regarding the scope. 
James (CloudAnswers)James (CloudAnswers)
How many emails do you need to send?  A list view should only be used when you're sending in chunks of 50 or 100 max.  The new gmal rest api makes it easy to send messages but you should consider whether or not gmail is the right relay for what you're doing.

Do you have multiple users doing this?  Will each need to be using their own gmail account so sent items show up in those accounts and replies go back to each user?  How many emails do you think will be sent per day?  Depending on some of this information, you may be best off using something like sendgrid.com because they give you additional tracking information you can pull back into salesforce about opens, bounces, etc.

These types of integrations should take 2-3 days to develop after you've figure out all the constraints.
Spencer EsseySpencer Essey
Hi James, 

The amount of emails we would be sending would range from ten to around 300 depending on the user.  We are a recruiting firm so we are constantly sending out opportunities to our talent pool and thus any of our sales reps would be using the feature.  Ideally each email would appear to be from that users individual account, show up in their sent folder, and have any responses sent back into their own inbox.  I don't imagine any of them would be hitting the 1500/day limit in Gmail, and if they do they should probably take it easy on the email.

We looked at Sendgrid and determined it would not be a viable option for us.  Ideally the user would be able to select the contacts/custom object Candidate they want to email, press a button and a window would appear that would let them write an email (merge fields maybe?) and send it away to the chosen people.  Using the email limit in Gmail and not Salesforce.  Is this something that can be done?

Thanks for the reply.

 
GauravGargGauravGarg

@spencer, 

Do we have a solution for the above approach?

Thanks,

Gaurav
Skype: gaurav62990