DomainMailFwdDelete
De NETIM
Version | Exécution |
---|---|
API >= 2.0 | Synchrone |
Description
Supprime une redirection d'adresse email
StructOperationResponse domainMailFwdDelete(string idSession, string mailBox)
Liste des paramètres
Format | Variable | Description | Notes |
---|---|---|---|
string (32) | idSession | Identifiant de la session | |
string (255) | mailBox | Adresse email |
Valeurs de retour
Une structure de type StructOperationResponse
Notes
Il n'existe pas de fonctions pour la modification d'une redirection. Il faut donc supprimer l'adresse puis créer la recréer avec les nouveaux destinataires
Exemples
Langage PHP
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); try { $idSession = $clientSOAP->sessionOpen("XXXX", "XXXX", "EN"); $StructOperationResponse = $clientSOAP->domainMailFwdDelete($idSession, "example@netim.com"); print_r($StructOperationResponse); } catch(SoapFault $fault) { echo "Exception : " .$fault->getMessage(). "\n"; } if(isset($idSession)) { $clientSOAP->sessionClose($idSession); } ?>
Version | Exécution |
---|---|
API > 1.0 | Synchrone |
Description
Supprime une redirection d'adresse email
int domainMailFwdDelete(string idSession, string mailBox)
Liste des paramètres
Format | Variable | Description | Notes |
---|---|---|---|
string (32) | idSession | Identifiant de la session | |
string (255) | mailBox | Adresse email |
Valeurs de retour
Un numéro d'opération
Notes
Il n'existe pas de fonctions pour la modification d'une redirection. Il faut donc supprimer l'adresse puis créer la recréer avec les nouveaux destinataires
Exemples
Langage PHP
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); try { $idSession = $clientSOAP->login("XXXX", "XXXX", "EN"); $trackingID = $clientSOAP->domainMailFwdDelete($idSession, "example@netim.com"); echo($trackingID); } catch(SoapFault $fault) { echo "Exception : " .$fault->getMessage(). "\n"; } if(isset($idSession)) { $clientSOAP->logout($idSession); } ?>
Langage JAVA
DRSServiceLocator service = new DRSServiceLocator(); String idSession; int trackingID; try { DRSPortType port = service.getDRSPort(); idSession = port.login("XXXX", "XXXX", "EN"); trackingID = port.domainMailFwdDelete(idSession, "example@netim.com"); System.out.println(trackingID); port.logout(idSession); } catch (RemoteException re) { System.out.println(re.getMessage()); } catch (ServiceException se) { se.printStackTrace(); }