Symfony2 - send email Warning: mkdir(): No such file or directory in

mkdir php
[errorexception] mkdir(): no such file or directory
php mkdir(): permission denied
php mkdir if not exists
php mkdir 777
mkdir(): no such file or directory
php mkdir not working
how to create directory dynamically in php

After configuration smtp in prameters.yml I trying to send email but I have this type of warning:

ContextErrorException: Warning: mkdir(): No such file or directory in /home/crashend/domains/tombax.com/public_html/gbuy/vendor/swiftmailer/swiftmailer/lib/classes/Swift/KeyCache/DiskKeyCache.php line 273

On the localhost everything worked fine but the problem appeared after transfer project to the server. Emails are not deliver.

Code from controller where are send emails:

$message = \Swift_Message::newInstance()
            ->setSubject('Hello Email')
            ->setFrom(array('exapmle@abc.net' => 'Tom'))
            ->setTo(array('exapmle2@abc.net' => 'Jan'))
            ->setBody('abcd')
    ;
    $this->get('mailer')->send($message);

Code from parameters.yml:

mailer_transport: smtp
mailer_host: smtp.myserver.com
mailer_user: exapmle@abc.net
mailer_password: pass

Please help.


After comment this:

if (is_writable($tmpDir = sys_get_temp_dir())) {    
    $preferences->setTempDir($tmpDir)->setCacheType('disk');
}

in the /vendor/swiftmailer/swiftmailer/lib/preferences.php everything works fine. I think that the problem was in the permission to the directory. Swiftmailer uses sys_get_temp_dir() function which trying refer to /tmp directory.

swiftmailer Symfony2 send email Warning: mkdir(): No such file or , swiftmailer Symfony2 send email Warning: mkdir(): No such file or directory in? Look in your config.yml and make sure the SwiftMailer spool directory is correct,  Q A Bug report? yes Feature request? no BC Break report? no RFC? no Symfony version 4.0.5 I'm trying to install a new Symfony4 project using composer create-project on a Windows 10 running the


You probably have your spool path set wrong (it is different on server, than your dev environment)

Look in your config.yml and make sure the SwiftMailer spool directory is correct, and that it exists (and your user has permissions to it) on the server.

[ErrorException] mkdir(): No such file or directory · Issue #25817 , We'll occasionally send you account related emails. [ErrorException] mkdir(): No such file or directory #25817 @szymach I tried to modify Path.php will other files were downloading but mkdir error still show composer create-project --no-​install symfony/skeleton your-dir then cded into it and changed  Dismiss Join GitHub today. GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.


I had the same problem today. Find this article

All I have to do was: set PrivateTmp to false

PrivateTmp=false

in

/lib/systemd/system/apache2.service

and then reload services

sudo systemctl daemon-reload
sudo systemctl restart apache2

How To Quickly Bake Mailgun With PHP, mkdir mailgun-php. Enter the directory and execute the following commands Open a file and include the vendor/autoload.php file to get started. 13'text' => 'It is so simple to send a message. that comes with every fresh account if you have not configured a custom domain), and copy paste these details  When running Composer install in a user account who has its home dir on / (in our case a chrooted account on a webserver), Composer tries to do a mkdir('//.composer', 0777, true) which fails due to the leading double slash.


mkdir - Manual, Function to create recursive and writable folder, if we have permission, without "Warning: mkdir(): No such file or directory in d:\path\to\file" where you think the  Hi, I am having an issue using composer. I am trying to use composer on a fresh Ubuntu 12.04 with the following command : php composer.phar create-project symfony/framework-standard-edition /home/f


Swift Mailer (Symfony Docs), Installation; Configuration; Sending Emails; Using Gmail to Send Emails; Using The config/packages/swiftmailer.yaml file that's created when installing the to not attempt to send the email message but instead save it somewhere such as a file. So make sure this directory is writable by Symfony (or your webserver/php​)!. Chat with fellow EECMS users in the 'mkdir() [function.mkdir]: No such file or directory' ExpressionEngine community discussion forum thread. We use cookies to help make our site work properly and to analyze how our site is used.


Sqlstatehy000 2002 no such file or directory symfony, I'm trying to send email from laravel, but I keep geting this error: mkdir(): No such file or directory. The code is: Mail::send('resetpassword', ['data' => $user],  stdin: is not a tty receiving incremental file list rsync: change_dir "/public_html/abc" failed: No such file or directory (2) sent 8 bytes received 101 bytes 8.72 bytes/sec total size is 0 speedup is 0.00 rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1655) [Receiver=3.1.1]