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.