Skip to content
Snippets Groups Projects
Commit 299d7685 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Modif config pour log

parent 2e076442
No related tags found
No related merge requests found
......@@ -29,3 +29,4 @@ dc_use_split_config='false'
dc_hide_mailname=''
dc_mailname_in_oh='true'
dc_localdelivery='maildir_home'
log_file_path='/var/log/exim4/mainlog'
\ No newline at end of file
<?php
namespace ApplicationUnitTest\Mail;
class SendMailTest extends \PHPUnit_Framework_TestCase
{
public function testSendMail()
{
$ok = mail('bertrandgauthier.vpc@free.fr', 'test envoi', 'ceci est un test', null, 'O DeliveryMode=b');
var_dump($ok);
exec('cat /var/log/exim4/mainlog', $output);
var_dump(array_pop($output));
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment