- What's new
InboxReady x Salesforce: The Key to a Stronger Email Deliverability
You may remember that Mailgun was acquired by Rackspace back in August of last year. So far, we think the acquisition is going great: we’re still developing on the product as much as ever, we love the Rackspace team, and thanks to our awesome customers, we’re growing really fast (more than doubling our email volume since the acquisition). While the majority of our customers still come from other platforms and hosting solutions, a ton of Rackspace customers have started using Mailgun (thanks guys!). To make life easier on these developers, Mailgun is now accessible from directly within the Rackspace Cloud Control Panel.
If you’re a Rackspace customer, you can access your Mailgun account directly from the place where you manage your servers, databases, block storage, private networks and everything else.
By default, each Rackspace Cloud account comes with a fresh Mailgun account, but you can also link your existing Mailgun account. To do that, you’ll just need your API key and use the same login email address for both accounts. Pretty simple.
A while back we blogged about a really cool photo sharing app that used Mailgun to parse emails that users send with their photos and then upload the files to Cloud Files, Rackspace’s object store (which is based on OpenStack Swift). You can read the full post here, but here’s the gist.
After you’ve set up a Route to parse the email and post it to your app, send the attachment off to Cloud Files like so:
import cloudfiles
import uuid
import os
conn = cloudfiles.get_connection(username=hsimpson, api_key='kwyjibo')
images = conn.create_container('images')
#Create a unique ID for a filename
image_attachment = images.create_object('%s%s') % (str(uuid.uuid4()), file_extension)
image_attachment.load_from_filename(attachment.filename)
In this case (because this is a photo sharing app), it’s important that everything inside the images container is publicly reachable with a unique URL. After uploading, you can request the public URI from Cloud Files.
image_attachment.public_uri()
>>'http://c1234.cdn.cloudfiles.rackspacecloud.com/6a8f43...ab3cb7.jpg'
That’s it. Hope the Rackspace integration makes it a little easier to build email into your app like this. Till next time.
Happy sending,
The Mailgunners
Learn about our Deliverability Services
Looking to send a high volume of emails? Our email experts can supercharge your email performance. See how we've helped companies like Lyft, Shopify, Github increase their email delivery rates to an average of 97%.
Last updated on August 28, 2020
InboxReady x Salesforce: The Key to a Stronger Email Deliverability
Announcing InboxReady: The deliverability suite you need to hit the inbox
Mailgun Joins Sinch: The Future of Customer Communications Is Here
Email’s Not Dead Season 3 Is Finally Here
Celebramos el Mes de la Herencia Hispana
Sinch to Acquire Mailgun, Creating a Best-Of-Breed Cloud Communications Platform
Continuing Our Commitment: HTTPS Innovation And Optimization
Apple Mail Privacy Protection: Is Email Marketing Dying Again?
Welcoming Email on Acid to the Pathwire Family
Mailgun Validations Now Supports Alias and Long-term Disposable Address Identification
InboxReady x Salesforce: The Key to a Stronger Email Deliverability
Become an Email Pro With Our Templates API
Google Postmaster Tools: Understanding Sender Reputation
Navigating Your Career as a Woman in Tech
Implementing Dmarc – A Step-by-Step Guide
Email Bounces: What To Do About Them
Announcing InboxReady: The deliverability suite you need to hit the inbox
Black History Month in Tech: 7 Visionaries Who Shaped The Future
How To Create a Successful Triggered Email Program
Designing HTML Email Templates For Transactional Emails
InboxReady x Salesforce: The Key to a Stronger Email Deliverability
Implementing Dmarc – A Step-by-Step Guide
Announcing InboxReady: The deliverability suite you need to hit the inbox
Designing HTML Email Templates For Transactional Emails
Email Security Best Practices: How To Keep Your Email Program Safe
Mailgun’s Active Defense Against Log4j
Email Blasts: The Dos And Many Don’ts Of Mass Email Sending
Email's Best of 2021
5 Ideas For Better Developer-Designer Collaboration
Mailgun Joins Sinch: The Future of Customer Communications Is Here
Always be in the know and grab free email resources!
By sending this form, I agree that Mailgun may contact me and process my data in accordance with its Privacy Policy.