AWS SES email attachment error

  1. 2 years ago

    Thomas P

    5 Jan 2016 Pre-Release Testers, Xojo Pro

    We are using AWS SES as our smtp for sending emails. We have been successful at sending emails without attachments, however we have not been able to send a pdf attachment. We are using the SMTPSecureSocket Authenticated on port 547. We have successfully sent attachments on other SMTP with other ports, but would prefer to use AWS SES.

    We are receiving the following error message.

    554 Transaction failed: Expected ';', got "x-mac-creator"

    Any help would be appreciated.

    Tom

    Beatrix,

    Thanks for replying, however we believe we figured out how to correct it by adding the following two lines:

    File.MacType = ""
    File.MacCreator = ""

    'ACTUAL CODE
    dim File As EmailAttachment
    File = New EmailAttachment
    File.LoadFromFile GetFolderItem(FileAttached)
    File.MacType = ""
    File.MacCreator = ""
    mail.Attachments.Append File

  2. Beatrix W

    5 Jan 2016 Pre-Release Testers Europe (Germany)

    From the error message I'd say that there is a problem with the header and not with Amazon. How do you add the attachments? Can you post the header of the mail that you want to send?

  3. Thomas P

    6 Jan 2016 Pre-Release Testers, Xojo Pro Answer

    Beatrix,

    Thanks for replying, however we believe we figured out how to correct it by adding the following two lines:

    File.MacType = ""
    File.MacCreator = ""

    'ACTUAL CODE
    dim File As EmailAttachment
    File = New EmailAttachment
    File.LoadFromFile GetFolderItem(FileAttached)
    File.MacType = ""
    File.MacCreator = ""
    mail.Attachments.Append File

  4. Beatrix W

    6 Jan 2016 Pre-Release Testers Europe (Germany)

    MacType and MacCreator are totally obsolete.

  5. 6 months ago

    John J

    19 May 2017 Pre-Release Testers, Xojo Pro Cleveland, Ohio

    I just ran into this error today - this was the fix. Thanks for posting the info!

or Sign Up to reply!