- What's new
Catch-All Domain Support Is Now Available In Email Validations
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
It's easy to get started. And it's free.
See what you can accomplish with the world’s best email delivery platform.
Last updated on August 28, 2020
Catch-All Domain Support Is Now Available In Email Validations
Mailgun Just Got Better For Client Management
Our Values In Action
The Mailgun Maverick Program Is Here!
Exciting News At Google: Introducing BIMI Support & Google Postmaster API
We Did It: Risk-Free Email Validation From Mailgun
Mailgun Partners with Verizon Media as View Time Optimization Provider
Mailgun’s COVID-19 Plan of Action
Inbox Placement - Delivery Made Simple
Send Your Emails at the Perfect Time with Send Time Optimization
Make Email Accessibility Your New Year’s Resolution
Sunset Policies: Allowing Unengaged Recipients to Ride Off into the Sunset
Email's Best of 2020
Catch-All Domain Support Is Now Available In Email Validations
The Best Time To Send Emails: Cracking The Code
Tips for Building Better Holiday Email Templates
Happy Festivus: Email Deliverability For The Holiday Season
The Basics of Email Subdomains
A Word of Caution For Laravel Developers
The Science and Art of Gmail Deliverability
Sunset Policies: Allowing Unengaged Recipients to Ride Off into the Sunset
Email's Best of 2020
Catch-All Domain Support Is Now Available In Email Validations
How To Improve Email Open Rates
Preparing Your Email Infrastructure Correctly
4 Tips To Improve Your Email Deliverability In 2020
COVID-19 Email Communications Dos and Don’ts
How To Use Parallel Programming
Mailgun’s COVID-19 Plan of Action
Password Meters Are Not For Humans
Always be in the know and grab free email resources!
Mailgun is committed to protecting your privacy. Please read ourPrivacy Policybefore providing us with your details.