NAME

Webservice::OVH::Email::Domain::Domain::MailingList

SYNOPSIS

use Webservice::OVH;

my $ovh = Webservice::OVH->new_from_json("credentials.json");

my $email_domain = $ovh->email->domain->domain('testdomain.de');

my $mailing_list = $email_domain->new_redirection(language 'de', name => 'infos', options => {moderatorMessage => 'true', subscribeByModerator => 'true', usersPostOnly => 'false'}, owner_email => 'owner@test.de' );

DESCRIPTION

Provides ability to create, delete, change and manage mailinglists.

METHODS

_new_existing

Internal Method to create a MailingList object. This method should never be called directly.

_new

Internal Method to create the MailingList object. This method should never be called directly.

is_valid

When this mailinglist is deleted on the api side, this method returns 0.

_is_valid

Intern method to check validity. Difference is that this method carps an error.

name

Unique identifier.

id

Secondary unique identifier.

domain

Returns the email-domain this redirection is attached to.

properties

Returns the raw properties as a hash. This is the original return value of the web-api.

language

Exposed property value.

options

Exposed property value.

owner_email

Exposed property value.

reply_to

Exposed property value.

nb_subscribers_update_date

Exposed property value.

nb_subscribers

Exposed property value.

change

Changes the objcet.

delete

Deletes the mailinglist api sided and sets this object invalid.

change_options

Changes additional options.

moderators

Returns an array of all moderators of this mailinglist.

moderators

Returns properties for a specified moderator E-Mail

add_moderator

Adds a moderator via E-Mail address.

delete_moderator

Deletes a moderator via E-Mail address.

delete_moderator

Sends the subscriber and moderator list to a specified E-Mail address.

subscribers

Returns an array of all subscribers or a filtered list.

subscriber

Returns the properties of a single subscriber.

add_subscriber

Adds an subscriber to the mailinglist.

delete_subscriber

Deletes an subscriber to the mailinglist.