문제

Using Swift mailer with Symfony. It works perfectly on windows but on linux there is an error:

Command:

 php app/console swiftmailer:spool:send --env=prod

Error:

 [ErrorException]                                                              
  Warning: mkdir(): No such file or directory in
 /var/www/html/KonnectEz/vendor/swiftmailer/lib/classes/Swift/KeyCache/DiskKeyCache.php line 270

swiftmailer:spool:send [--message-limit[="..."]] [--time-limit[="..."]]
도움이 되었습니까?

해결책

I think SwiftMailer DiskKeyCache is unable to create the cache directory recursively. Please check your SwiftMailer spool directory in config.yml and make sure this path exists.

mkdir() doesn't create directories recursivey by default and DiskKeyCache doesn't force this behaviour.

Maybe the spool directory exists in your windows environment, but not in your linux env?

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top