Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7577175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T17:07:03+00:00 2026-05-30T17:07:03+00:00

I would like to create emails with attachments via force.com through Amazon Web Services’

  • 0

I would like to create emails with attachments via force.com through Amazon Web Services’ Simple Email Service service because of the force.com organization-wide limit of 1,000 single outbound email messages per day.

The SendEmail method in AWS’ SES does not support attachments, but they do provide support for raw emails via SendRawEmail (at least for most file type that you’d be interested in sending).

As far as I can tell, you can’t get the raw version of a SingleEmailMessage and need to construct it yourself.

How should I create a multipart MIME email message in APEX?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T17:07:04+00:00Added an answer on May 30, 2026 at 5:07 pm

    You can use the EncodingUtil class to convert the attachment to Base64.

    Lay out your email according to the MIME standards.

    Here’s a borrowed example:

    Content-Transfer-Encoding: 7bit
    Content-Type: multipart/mixed; boundary="_----------=_10167391557129230"
    MIME-Version: 1.0
    Date: Thu, 21 Mar 2002 19:32:35 UT
    From: martin dot zahn at akadia dot ch
    To: martin dot zahn at akadia dot ch
    Subject: MIME test
    X-Mailer: MIME::Lite 2.106  (B2.11; Q2.03)
    
    This is a multi-part message in MIME format.
    
    --_----------=_10167391557129230
    Content-Transfer-Encoding: binary
    Content-Type: text/plain
    
    Hello world!
    
    --_----------=_10167391557129230
    Content-Transfer-Encoding: base64
    Content-Type: application/zip; name="test_file.zip"
    
    UEsDBBQAAAAIAEAUmicKJJts5wUAANkOAAAHAAAAaG93LmNnaa1XbW/bRgz+
    7AD5D6ziJPJmR8k+DEj8snWd0wRonS51VwxNYcj22bpZ1qm6cx0v8H77SN5J
    APsNAAAAAA==
    
    --_----------=_10167391557129230--
    
    .
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm programming in PHP and would like to create web pages which have email
I would like to make it available for clients to create emails through a
I would like create a web service in ASP.Net 2.0 that will supports JSON.
I would like to create an app such that I can send an email
I would like to create an email service for all the users on my
I don't want to create templates for all transactional emails but I would like
I would like to create an email client that can access multiple IMAP mailboxes.
I would like to create a user notification system using emails. In context it
I would like create my own collection that has all the attributes of python
Would like to create a strong password in C++. Any suggestions? I assume it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.