<<

NAME

Koha::SMTP::Server - Koha SMTP Server Object class

API

Class methods

store

    $server->store;

Overloaded store method.

transport

    my $transport = $smtp_server->transport;
    $email->transport($transport);
    $email->send_or_die;

Returns an Email::Sender::Transport::SMTP::Persistent object that can be used directly with Email::Sender.

libraries

    my $libraries = $smtp_server->libraries

Accessor to get the list of libraries that are linked to this SMTP server

is_system_default

    if ( $smtp_server->is_system_default ) { ... }

Method that tells if a Koha::SMTP::Server is the hardcoded one.

to_api

    my $json = $smtp_server->to_api;

Overloaded method that returns a JSON representation of the Koha::SMTP::Server object, suitable for API output.

to_api_mapping

This method returns the mapping for representing a Koha::SMTP::Server object on the API.

Internal methods

_type

Return type of Object relating to Schema ResultSet

<<