Mail extension

(2 posts) (1 voice)

Tags:

  1. drraab, Member

    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

  2. drraab, Member

    Sorry, I was just stupid and realized I was trying to call the proc not using myDBRs frame but directly in mySQL. Works!


Reply

You must log in to post.