Skip Navigation Links.
展开 最小化

SpreadWebServcie.DeleteSenderEmail Method

刪除發送者郵箱地址

參數

參數

類型

描述

loginEmail

String

Spread賬號的郵箱地址

APIKey

String

Spread賬號的密碼或者 API Key

senderEmail

String

被刪除的發送者郵箱地址

返回結果

true - 成功刪除。

false - 發送者郵箱地址不存在,刪除失敗。

例子

string loginEmail = "Spread@reasonables.com";

string APIKey = "Spread";

string senderEmial = "Send1@reasonables.com";

SpreadAPI. SpreadWebService MySpread = new SpreadAPI. SpreadWebService ();

bool result = MySpread.DeleteSenderEmail(loginEmail, APIKey, senderEmial);

Dim loginEmail As String = "Spread@reasonables.com"

Dim APIKey As String = "Spread"

Dim senderEmial As String = "Send1@reasonables.com"

Dim MySpread As New SpreadAPI. SpreadWebService

Dim result As Boolean = MySpread.DeleteSenderEmail(loginEmail, APIKey, senderEmial)

    /**
    * @name     deleteSendUser
    * @function delete sender email address
    * @param
    *  sender	the email address you want to delete it
    * @return
    *  false       failed,you have alerady added this email address as sender.
    *  true        success.
    */
    public function deleteSendUser($loginEmail,$apiKey,$sender ){
        $sendArr = array(
	        'loginEmail'        => $loginEmail,
	        'password'	    => $apiKey,
	        'SenderEmail'       => $sender
        );
        $Client=new SoapClient("http://service.rspread.com/Service.asmx?WSDL");
        $flag = $Client -> DeleteSenderEmail( $sendArr );
        if( empty( $flag ) ){
	        return false;
        }
        return true;
    }

         
No sample.