404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.140.188.79: ~ $
**To send a raw email using Amazon SES**

The following example uses the ``send-raw-email`` command to send an email with a TXT attachment::

    aws ses send-raw-email \
    --cli-binary-format raw-in-base64-out \
    --raw-message file://message.json

Output::

 {
    "MessageId": "EXAMPLEf3f73d99b-c63fb06f-d263-41f8-a0fb-d0dc67d56c07-000000"
 }

The raw message is a JSON data structure saved in a file named ``message.json`` in the current directory. It contains the following::

 {
    "Data": "From: sender@example.com\nTo: recipient@example.com\nSubject: Test email sent using the AWS CLI (contains an attachment)\nMIME-Version: 1.0\nContent-type: Multipart/Mixed; boundary=\"NextPart\"\n\n--NextPart\nContent-Type: text/plain\n\nThis is the message body.\n\n--NextPart\nContent-Type: text/plain;\nContent-Disposition: attachment; filename=\"attachment.txt\"\n\nThis is the text in the attachment.\n\n--NextPart--"
 }

As you can see, "Data" is one long string that contains the entire raw email content in MIME format, including an attachment called attachment.txt.

Replace sender@example.com and recipient@example.com with the addresses you want to use. Note that the sender's email address must be verified with Amazon SES. Until you are granted production access to Amazon SES, you must also verify the email address of the recipient
unless the recipient is the Amazon SES mailbox simulator. For more information on verification, see `Verifying Email Addresses and Domains in Amazon SES`_ in the *Amazon Simple Email Service Developer Guide*.

The Message ID in the output indicates that the call to send-raw-email was successful.

If you don't receive the email, check your Junk box.

For more information on sending raw email, see `Sending Raw Email Using the Amazon SES API`_ in the *Amazon Simple Email Service Developer Guide*.

.. _`Sending Raw Email Using the Amazon SES API`: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/send-email-raw.html
.. _`Verifying Email Addresses and Domains in Amazon SES`: http://docs.aws.amazon.com/ses/latest/DeveloperGuide/verify-addresses-and-domains.html


Filemanager

Name Type Size Permission Actions
delete-identity.rst File 529 B 0644
get-identity-dkim-attributes.rst File 1.13 KB 0644
get-identity-notification-attributes.rst File 1.34 KB 0644
get-identity-verification-attributes.rst File 997 B 0644
get-send-quota.rst File 1.23 KB 0644
get-send-statistics.rst File 1.16 KB 0644
list-identities.rst File 906 B 0644
send-email.rst File 2.23 KB 0644
send-raw-email.rst File 2.07 KB 0644
set-identity-dkim-enabled.rst File 498 B 0644
set-identity-feedback-forwarding-enabled.rst File 890 B 0644
set-identity-notification-topic.rst File 728 B 0644
verify-domain-dkim.rst File 820 B 0644
verify-domain-identity.rst File 630 B 0644
verify-email-identity.rst File 970 B 0644