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

  • SEARCH
  • Home
  • 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 8677407
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:26:56+00:00 2026-06-12T20:26:56+00:00

I configured my postfix to use Amazon SES when sending Emails. I am trying

  • 0

I configured my postfix to use Amazon SES when sending Emails.
I am trying to use FOSUserBundle’s function to send email for user password reset.
Unfortunately, the mail never arrive to the mailbox, Amazon SES don’t accept the emails forged by the FOSUserBundle.

Does anybody what is the matter with this email:

Content-Transfer-Encoding: quoted-printable
Content-Type: text/html; charset=utf-8
MIME-Version: 1.0
Date: Mon, 15 Oct 2012 04:07:56 +0000
Message-ID: <1350274076.507b8c1c8cee8@www.yourownpoet.com>
From: quilly@YourOwnPoet.com
Subject: blablou
To: toto@gmail.com
Bcc: 
    <html><body>whatever</body></html>

This doesn’t work neither:

Content-Type: multipart/alternative;
boundary="_=_swift_v4_1350274671507b8e6f82b5f_=_"
MIME-Version: 1.0
Date: Mon, 15 Oct 2012 04:17:51 +0000
Message-ID: <1350274671.507b8e6f99894@www.yourownpoet.com>
From: quilly@YourOwnPoet.com
Subject: blablou
To: toto@gmail.com
Bcc: 
    <html><body>whatever</body></html>

I created my own mailer service in order to try the emails with different headers (I use SwiftMailer). How should I forge my email so that it goes through Amazon SES?

EDIT:

I noticed that other mail with content-type: multipart/mixed; go through SES, but I don’t manage to force the content-type field to this value. Is it possible to do it? Here is how i forge the email:

$message = \Swift_Message::newInstance()
        ->setContentType('multipart/mixed')
        ->setSubject('blablou')
        ->setFrom('quilly@YourOwnPoet.com')
        ->setTo('toto@gmail.com')
        ->setBody('<html><body>whatever</body></html>', 'text/html')
        ->addPart('fdsfsd', 'text/plain');

$this->mailer->send($message);

But the content-type is still ‘multipart/alternative’..

  • 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-06-12T20:26:57+00:00Added an answer on June 12, 2026 at 8:26 pm

    Allright, found the answer… Leaving the post here, who knows might be useful to someone one day.

    The problem wasn’t coming from the content-type but from the sender’s email adress!
    Remember that you have to set which email addresses have the right to send email through ses.. And this email is case sensitive!

    You can use the Mailer provided by FOSserBundle without problem, but configure it properly:

    config.yml:

    fos_user
        resetting:
            email:
                template: YOPYourOwnPoetBundle:Emails:resetEmail.html.twig
        from_email:
            address:        Quilly@YourOwnPoet.com /*set ses accepted email address here */
            sender_name:    Quilly
        service:
            mailer: fos_user.mailer.twig_swift
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I configured log4j SMTPAppender to send emails to me on errors. It works, but
I am trying to configure postfix for using relay host with the following in
I configured IntelliJ IDEA 6.0.6 to use Subversion for version control. The Subversion menu
I configured rails to work fine with Rails 3. I am trying to create
I am using Postfix as a mail server and I configured it to receive
I'm trying to troubleshoot my postfix so I decided to route its traffic to
Is there a way to configure postfix to use a relay only if direct
I'm using PEAR's Mail package to send email from my script. I'm pretty sure
I have configured Reporting Services to allow users to use Report Builder application. Users
I configured my app to use S3 instead of local filesystem to store Paperclip

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.