OroCommerce Forums

Covering OroCommerce topics, including community updates and company announcements.

Forums Forums OroCommerce Email not sent in production mode (live server)

This topic contains 2 replies, has 2 voices, and was last updated by  Rio 5 years, 7 months ago.

Starting from March 1, 2020 the forum has been switched to the read-only mode. Please head to StackOverflow for support.

  • Creator
    Topic
  • #37327

    Rio
    Participant

    Hello masters,

    In a few days, i’ve been searching to resolve an issue regarding “Unable to send the email.. in live server….
    It is work on development mode (myurl.com/app_dev.php/customer/user/reset-request). But it didn’t work when use production mode (myurl.com/customer/user/reset-request). I checked smtp email configuration worked as well from admin backend.

    I also tried to modify the config.yml, parameters.yml and try to follow this link https://stackoverflow.com/questions/34596190/symfony-swiftmailer-mail-not-sent-in-prod-environment. Is it swiftmailer issue or anything else?. Could you give some suggestion how to configure it ??

    note : orocommerce 1.5

    Thanx in Advance

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #37344

    Andrey Yatsenko
    Moderator

    When configuration works different for production and development environment, it’s usually the cache problem.
    Try to run rm -rf app/cache/* in case you are using 2.6 or lover version.

    For 3.0 version run rm -rf var/cache/*

    Also if you use redis – clear the redis cache with redis-cli flushall

    Then warmup the cache with cache:warmup --env=prod

    P.S. you should not enable development mode on a production, as it can bring a security issue.
    If you really need it – make sure it’s at least limited by IP.

    And notice that updating the configuration in one environment will not update in for any other environments automatically as all the environments have independent cache. If you do that – it’s require to clear the cache.

    #37366

    Rio
    Participant

    Hi Andrey,

    This error seems like because of error Monolog handler configuration on config_prod.yml
    finally I commented some code on this file and works …

    from finger_crossed until swift
    But Im not sure this is a good idea or not

    Thanks

    • This reply was modified 5 years, 7 months ago by  Rio. Reason: wrong word
Viewing 2 replies - 1 through 2 (of 2 total)

The forum ‘OroCommerce’ is closed to new topics and replies.

Back to top