Fork me on GitHub

Emailing, CCing  Bottom

  • After a long time away from the programming, I'm back! Yay! *hugs job*

    So, anyway, I've got this module to track travel requests. Each request should have two email addresses. I'd like to make it possible for our director to send email to the two addresses (one basically as a CC:, but it doesn't necessarily have to be this way). Is there a module already out there that anyone knows of that I could use as a template to do this sort of thing?

    I am such a cribber! :D
  • The mailer module....

    Code

    $bcc = array('address' => 'mybcc@mydomain.com', 'name' => 'My person to bcc');
    $body = 'my text to e-mail';
    $result = pnModAPIFunc('Mailer', 'user', 'sendmessage', array('toname' => 'Recipient', 'toaddress' => 'recipient@mydomain.com', 'subject' => 'my subject', 'body' => $body, 'bcc' => $bcc));


    Note: See the phpdoc headers in the mailer module for information on other parameters taken by the mailer module.

    -Mark

    --
    Visit My homepage and Zikula themes.
  • 0 users

This list is based on users active over the last 60 minutes.