Hello,
I am wondering how this mail extension works.. for some reason it doesnt send mail and I cant see anything in my logs.
What I have verified is that I can send mail using PHPMailer as shown by the example script below. I have also edited the extension_init as shown below.
<?php
// The message
$message = "Some message";
$message = wordwrap($message, 70);
mail('my.email.adress@domain.com', 'My Subject', $message);
?>
$mydbr_mail = array(
'host' => 'localhost', // mail host
'port' => 25, // set the SMTP port
'secure' => '', // 'ssl' if you're mail server uses SSL
'username' => '', // SMTP account username
'password' => '', // SMTP account password
'charset' => 'UTF-8',
'from' => array(
'email' => 'root@mydomain.net',
'name' => 'myDBR Reporting'
),
'replyto' => array(
'email' => 'root@mydomain.net',
'name' => 'myDBR Reporting'
),
// In order not to send mails too fast (mail server might refuse to send the mails),
// we'll pause after 'sleep_after_rows' for the period of 'sleep_microsec'
// See your mail server configuration for optimal settings
'sleep_after_rows' => 50,
'sleep_microsec' => 1000000, // microseconds
);
?>
Can you please give me some pointers as to where to start looking as I cant see any indication myDBR even tries to use Postfix to send these mails.. ?
Thanks!
Kind regards,
Andy