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 9163353
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:25:37+00:00 2026-06-17T14:25:37+00:00

At first i have emial aaa@bbb.com and there is another email doesn’t belong to

  • 0

At first i have emial aaa@bbb.com and there is another email doesn’t belong to me for example ccc@ddd.com or anything else blabla@bla.com

IN factories.yml i configured the mailer with the following

mailer:
  class: sfMailer
  param:
    logging:           %SF_LOGGING_ENABLED%
    charset:           %SF_CHARSET%
    delivery_strategy: realtime
    transport:
      class: Swift_SmtpTransport
      param:
        host:       smtp.localhost.com
        port:       25
        username:   aaa@bbb.com
        password:   123456

In the code … to send an email i use

         $message = Swift_Message::newInstance()->setSubject('sub')->setFrom('ccc@ddd.com')->setTo('yahoo@yahoo.com');
         sfContext::getInstance()->getMailer()->send($message);

Now i setFrom() —> ccc@ddd.com however i configured the factories.yml with another email aaa@bbb.com!!!!

Finally the sent mail is from ccc@ddd.com which isn’t my email actually

  • 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-17T14:25:38+00:00Added an answer on June 17, 2026 at 2:25 pm

    the factories.yml file details the SMTP details

    param:
        host:       smtp.localhost.com
        port:       25
        username:   aaa@bbb.com
        password:   123456
    

    Here the username is the username used for logging onto the smtp server. Not the email address the email will be sent from.

    This line

    $message = Swift_Message::newInstance()
                      ->setSubject('sub')
                      ->setFrom('ccc@ddd.com')
    

    determines the from address of the email.

    See the docs for swift mailer for the methods

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following String First Last <first.last@email.com> I would like to extract first.last
I have first table like this: ID Email 100 a@a.com 200 b@b.com I have
I have a requirement where I have to register users first via email. So,
I have first names stored in one table and last names stored in another.
Have an email, want to remove the first @ symbol from it, to then
http://www.trirand.com/blog/jqgrid/jqgrid.html I have a jqgrid with 5 columns, with first column as Actions, in
Let's say I have some email: some_email@yahoo.com . Firstly I would want to remove
I have a name table with (id,first_name,middle_name,last_name,sex) and an email table with (id_fk,email_add) Infact
To access a remote database, I first have to use a program called Shrew
In order to bring up the menu for a DataGridViewComboBoxCell, I first have to

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.