Results 1 to 11 of 11

Thread: After update from Contao 3.5 to Contao 4.6 e-mail and registration form not work

  1. #1
    New user
    Join Date
    10-29-18.
    Posts
    17

    Default After update from Contao 3.5 to Contao 4.6 e-mail and registration form not work

    Hi
    I finiched update to Contao 4.6 and everything is OK. Only, I have problem with sending members registration, and also contact form.
    I see many answers about this problem, but for me error is still here:
    Code:
    [2018-10-30 13:16:06] request.INFO: Matched route "contao_frontend". {"route":"contao_frontend","route_parameters":{"_route":"contao_frontend","_token_check":true,"_controller":"Contao\\CoreBundle\\Controller\\FrontendController::indexAction","_scope":"frontend","alias":"links-downloads"},"request_uri":"http://mydomain.de","method":"POST"} []
    [2018-10-30 13:16:06] security.INFO: Populated the TokenStorage with an anonymous Token. [] []
    [2018-10-30 13:16:07] request.CRITICAL: Uncaught PHP Exception Swift_TransportException: "Expected response code 220 but got an empty response" at /www/htdocs/##########/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php line 445 {"exception":"[object] (Swift_TransportException(code: 0): Expected response code 220 but got an empty response at /www/htdocs/##################/vendor/swiftmailer/swiftmailer/lib/classes/Swift/Transport/AbstractSmtpTransport.php:445)"} []
    Any suggestions?
    Thank you in advanced

  2. #2
    New user
    Join Date
    10-29-18.
    Posts
    17

    Default

    I found this solution, but I am not sure what I need change:
    https://github.com/contao/core-bundle/issues/1613
    Somebody tried this solution ?

  3. #3
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    The "easiest" solution would be to configure an SMTP server in your parameters.yml

  4. #4
    New user
    Join Date
    10-29-18.
    Posts
    17

    Default

    Quote Originally Posted by Spooky View Post
    The "easiest" solution would be to configure an SMTP server in your parameters.yml
    This is my parameters.yml:
    Code:
    # This file has been auto-generated during installation
    parameters:
        database_host: localhost
        database_port: 3306
        database_user: 00000000
        database_password: xxxxxxxxxxxxx
        database_name: xxxxxxxxxxx
        secret: xxxxxxxxxxx
    You mean I have to add this:
    Code:
    mailer_transport: smtp 
        mailer_host: myMailserver 
        mailer_user: administrator@mydomain.com
        mailer_password: *********** 
        mailer_port: 
        mailer_encryption:

  5. #5
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Yes

  6. #6
    New user
    Join Date
    10-29-18.
    Posts
    17

    Unglücklich

    And I have new error:
    Code:
    $ /usr/bin/php72 '-q' '/www/htdocs/##############/vendor/contao/manager-bundle/bin/contao-console' 'cache:clear' '--env=prod' '--no-warmup' 2>&1
    
    
    In YamlFileLoader.php line 657:
                                                                                   
      There is no extension able to load the configuration for "mailer_host" (in   
      /www/htdocs/###############/app/config/parameters.yml)  
      . Looked for namespace "mailer_host", found "knp_menu", "knp_time", "scheb_  
      two_factor", "header_replay", "framework", "security", "twig", "monolog", "  
      swiftmailer", "doctrine", "doctrine_cache", "lexik_maintenance", "nelmio_co  
      rs", "nelmio_security", "sensio_framework_extra", "fos_http_cache", "contao  
      _manager", "contao", "contao_faq", "contao_installation", "contao_news", "c  
      ontao_calendar"                                                              
                                                                                   
    
    
    # Process terminated with exit code 1
    # Result: General error


  7. #7
    Community-Moderator xchs's Avatar
    Join Date
    06-20-09.
    Posts
    1,287

    Default

    What did you set for mailer_host?
    Contao Community Moderator
    → Support options

  8. #8
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Post your complete parameters.yml but without any SMTP and database username and passwords (!).

  9. #9
    New user
    Join Date
    10-29-18.
    Posts
    17

    Default

    Quote Originally Posted by Spooky View Post
    Post your complete parameters.yml but without any SMTP and database username and passwords (!).

    Code:
    # This file has been auto-generated during installation
    parameters:
        database_host: localhost
        database_port: 3306
        database_user: ###
        database_password: ###
        database_name: ###
        secret: ###
        mailer_transport: smtp
        mailer_host: ###
        mailer_user: ###
        mailer_password: ###
        mailer_port: 465
        mailer_encryption: ssl

  10. #10
    New user
    Join Date
    10-29-18.
    Posts
    17

    Default

    Solved !
    I changed encryption to tls and port, and now everythings work.
    Thank you very much

  11. #11
    User Spooky's Avatar
    Join Date
    01-03-13.
    Posts
    339

    Default

    Great

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •