src/XQueue/Maileon/API/Mailings/MailingsService.php
function createMailing($name, $subject, $deprecatedParameter = false, $type = "regular")
    {
        $queryParameters = array(
            'name' => urlencode($name),
            'subject' => urlencode($subject),
            'type' => urlencode($type),
        );

        return $this->post('mailings', "", $queryParameters);
    }
function createMailing($name, $subject, $deprecatedParameter = false, $type = "regular")
    {
        $queryParameters = array(
            'name' => urlencode($name),
            'subject' => urlencode($subject),
            'type' => urlencode($type),
        );

        return $this->post('mailings', "", $queryParameters);
    }
function createMailing ( $ name , $ subject , $ deprecatedParameter = false , $ type = "regular" ) { $ queryParameters = array ( 'name' => urlencode ( $ name ) , 'subject' => urlencode ( $ subject ) , 'type' => urlencode ( $ type ) , ) ; return $ this -> post ( 'mailings' , "" , $ queryParameters ) ; }
Creates a new mailing.
@param string $name
the name of the mailing
@param string $subject
the subject of the mailing
@param bool $deprecatedParameter
this parameter was never used by the API
@param string $type
the type of the mailing, which can be one of 'doi', 'trigger', or 'regular'.
@return \em com_maileon_api_MaileonAPIResult
the result of the operation
Creates a new mailing .