Skip Navigation Links.
展开 最小化

SpreadWebServcie.DeleteSenderEmail Method

Delete Sender Email .

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

APIKey

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

senderEmail

String

The send email.

Return Value

true - success

false - The sender email does not exists.

Example

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.