Skip to content

Commit

Permalink
Use "_" separator for time as ":" does not work on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
geekdevs authored Feb 4, 2020
1 parent c1bbcf8 commit 9ed7dbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/SwiftMailer/Transport/FileTransport.php
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ public function send(Swift_Mime_Message $message, &$failedRecipients = null)
protected function doSend(Swift_Mime_Message $message, &$failedRecipients = null)
{
$body = $message->toString();
$fileName = $this->path.'/'.date('Y-m-d H:i:s');
$fileName = $this->path.'/'.date('Y-m-d H_i_s');

for ($i = 0; $i < $this->retryLimit; ++$i) {
/* We try an exclusive creation of the file. This is an atomic operation, it avoid locking mechanism */
Expand Down

0 comments on commit 9ed7dbc

Please sign in to comment.