GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  OPENXPKI::SERVER::NOTIFICATION::SMTP (3)

.ds Aq ’

Name

OpenXPKI::Server::Notification::SMTP - Notification via SMTP

CONTENTS

Description

This class implements a notifier that sends out notification as plain plain text message using Net::SMTP. The templates for the mails are read from the filesystem.

Configuration



    backend:
        class: OpenXPKI::Server::Notification::SMTP
        host: localhost
        port: 25
        username: smtpuser
        password: smtppass
        debug: 0

    default:
        to: "[% cert_info.requestor_email %]"
        from: no-reply@openxpki.org
        reply: helpdesk@openxpki.org
        cc: helpdesk@openxpki.org
        prefix: PKI-Request [% meta_wf_id %]

    template:
        dir:   /home/pkiadm/ca-one/mails/

    message:
        csr_created:
            default:
                template: csr_created_user
                subject: CSR for [% cert_subject %]

            raop:
                template: csr_created_raop  # Suffix .txt is always added!
                to: ra-officer@openxpki.org
                reply: "[% cert_info.requestor_email %]"
                subject: New CSR for [% cert_subject %]



Calling the notifier with MESSAGE=csr_created will send out two mails. One to the requestor and one to the ra-officer, both are CC’ed to helpdesk.

<B>NoteB>: The settings To, Cc and Prefix are stored in the workflow on the first message and reused for each subsequent message on the same channel, so you can gurantee that each message in a thread is sent to the same people. All settings from default can be overriden in the local definition. Defaults can be blanked using an empty string.

Functions =head2 notify see @OpenXPKI::Server::Notification::Base

   

    _send_plain

Send the message using Net::SMTP

    _send_html

Send the message using MIME::Tools
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 OPENXPKI::SERVER::NOTIFICATION::SMTP (3) 2016-04-03

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.