• Your Account
  • Pricing
  • FeaturesFeatures and Benefits of Elastic Email
  • CustomersA few of our great customers
  • BlogHome of Elastic Email's Blog
  • API Documentation
  • Get CreditPurchase credit to send emails
  • SupportSupport and help for Elastic Email
  • ContactContact form to send an email to us
SMTP Relay
  • Home
  • FeaturesFeatures and Benefits of Elastic Email
  • PricingPricing and costs of using Elastic Email
  • DocsDocumentation of our API
  • Get CreditGet Credit for your Elastic Email account
  • ContactContact us
  • Your AccountAccess your elastic email account.
Edit - Delete
Text AreaText Area - Table of Contents
API-Documentation Table of Contents
Edit - Delete
Text AreaText Area - Upload Attachment

Upload Attachment

The upload attachment command is used to upload an attachment for sending.  

To upload your attachment do a HTTP PUT of your attachment file to:

https://api.elasticemail.com/attachments/upload?username=yourusername&api_key=yourapikey&file=yourfilename

Note: There is currently a limit of 15 MB/attachment.

Once your attachment has been uploaded you will receive an attachment ID back from the request. You can send one or more attachments in your email by referencing the attachment IDs returned.  You may use the attachment for up to 48 hours after it has been uploaded.  Just add an attachments field to your /mailer/send call:

attachments=semi-colon separated list of attachment IDs

See the modified code samples below which include uploading attachments.


Edit - Delete
Text AreaText Area - Code Samples

Code Samples

Edit - Delete
Html Script BoxHtml Script Box - PHP

PHP

Edit - Delete
Html Script BoxHtml Script Box - C#

C#

Edit - Delete
Html Script BoxHtml Script Box - Objective C (iPhone)

Objective C (iPhone)

Terms of Use       Privacy Policy
© Copyright 2010-2011 Geographical Media Inc. - About Us