Method : get_mail

This method serves to get back the information of your messages (Email, SMS, mail, VMS) according to your parameters, or a particular message according to its identifier.

Field Type Description
mailid integer Identifier of your message
if this parameter is defined,your other parameters won't be considered(Optional)
title string Title of your message(Optional)
subject string Subject of your message(Optional)
type string Type of your message
'auto', 'manu'(Optional)
format string Format of your message
'email', 'sms', 'lettre_nb_j4', 'lettre_c_j4', 'lettre_nb_j1', 'vms'(Optional)
listeid integer List of your message(Optional)
limite array Limit of data recovery.
Format [0,50](Optional)
                                
                                    
// Recherche des 5 premiers messages de la liste 12345
    $sgApi
        ->set('listeid',    12345)
        ->set('limite',     [0,5])
        ->set('detail',      true);

    $call = $sgApi->call('get_mail');