RocketTheme Joomla Templates

POST request
CURL-less method with PHP

$url = '';
$data = array('apiuser' => 'the one we provided you', 'apipass' => 'the one we provided you', 'from' => '', 'to' => '', 'subject' => 'subject of the message', 'text' => 'email body in plain text', 'html' => 'email body in HTML format');

// use key 'http' even if you send the request to https://...
$options = array(
    'http' => array(
        'header'  => "Content-type: application/x-www-form-urlencoded\r\n",
        'method'  => 'POST',
        'content' => http_build_query($data),
$context  = stream_context_create($options);
$result = file_get_contents($url, false, $context);


POST request
CURL method

curl -d 'apiuser=the one we provided you&apipass=the one we provided you& of the message&text=email body in plain text&html=email body in HTML format'

API Examples with attachments