NAME
WebService::NFSN::Email - Access NFSN email forwarding
VERSION
This document describes WebService::NFSN::Email version 0.01
SYNOPSIS
use WebService::NFSN;
my $nfsn = WebService::NFSN->new($USER, $API_KEY);
my $email = $nfsn->email($DOMAIN);
$email->setForward(forward => 'name',
dest_email => 'to@example.com');
DESCRIPTION
WebService::NFSN::Email provides access to NearlyFreeSpeech.NET's email forwarding API. It is only useful to people who have NearlyFreeSpeech.NET's email forwarding service.
INTERFACE
$email = $nfsn->email($DOMAIN)-
This constructs a new Email object for the specified
$DOMAIN(like'example.com'). Equivalent to$email = WebService::NFSN::Email->new($nfsn, $DOMAIN).
Properties
None.
Methods
$email->removeForward(forward => $NAME)-
Removes forwarding instructions from
"$NAME\@$DOMAIN". $email->setForward(forward => $NAME, dest_email => $TO)-
This method is used to create a new email forward or update an existing one.
$NAMEis only the username component, so if you haveexample.comand you want to set up an email forward for forwardingtestuser@example.comtorealuser@example.netthen you would passtestuseras$NAMEandrealuser@example.netas$TO.If
$NAMEalready had a forwarding address, it will be overwritten with the new$TO.To cause an email address to bounce, forward it to
bounce@nearlyfreespeech.net. To cause it to be silently discarded, forward it todiscard@nearlyfreespeech.net.