Upload AttachmentThe 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. Code SamplesPHPC#Objective C (iPhone) |