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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T11:04:04+00:00 2026-06-15T11:04:04+00:00

I am trying to set a null value in app/config/parameters.ini and use it in

  • 0

I am trying to set a null value in app/config/parameters.ini and use it in app/config/config.yml for the swiftmailer.encryption config parameter. I need to set it in parameters.ini because I have different environments that each use different mail configuration.

The Symfony documentation says that this config parameter should be a string value and that “valid values are tls, ssl, or null”.

My first guess would be to add mailer_encryption="null" to parameters.ini and encryption: %mailer_encryption% to config.yml. But that results in an error:

“InvalidConfigurationException: Invalid configuration for path “swiftmailer.encryption”: The “null” encryption is not supported”.

If I use mailer_encryption=null or mailer_encryption= in parameters.ini, I get another error:

“InvalidConfigurationException: Invalid configuration for path “swiftmailer.encryption”: The “” encryption is not supported”.

If I stop referencing the parameter by changing config.yml to encryption:, it works but this doesn’t solve my objective.

I am using Symfony 2.0.15, which includes Swiftmailer with it. This is the 2.0 branch.

How can I get this working?

  • 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-15T11:04:05+00:00Added an answer on June 15, 2026 at 11:04 am

    AFAIK, you can use yml format of parameters file. So try to create parameters.yml and import it to your config.yml

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

Sidebar

Related Questions

Trying to set up Cancan within an app of mine and having trouble with
im trying to set the height of two divs on my page, because my
I am trying to build a desktop app to use facebook api and get
I'm trying to use a custom control in a WPF app, and I have
I'm trying to use a Pivot control for a calendar type app, where each
Im trying set the single table inheritance model type in a form. So i
Trying to set up a self signed certificate, for our intranet's web services site.
Trying to set it so if a certain condition is met then one of
Trying to set up a dependency in C++ with a parent-child relationship. The parent
Trying to set up a new project, and running into a weird issue. I

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.