SendTransactionalEmail

Sends a transactional email

This method sends a transactional email.

If sending to multiple recipients, please separate addresses with a comma.

Please note that this method doesn't add to your allotted total calls per hour.

You must specify either a HTML body and/or a plain text body.

SOAP action: http://apiconnector.com/v2/ApiService/SendTransactionalEmail

πŸ“˜

Input and output parameters

The input and output parameters for this method are:

Input parameters

  • TransactionalEmail
    • ToAddresses - array of string
      • required; string
    • CCAddresses - array of string
      • optional; string
    • BCCAddresses - array of string
      • optional; string
    • Subject - required; string
    • FromAddress - required; string
    • HtmlContent - required; string
    • PlainTextContent - required; string

Output parameters
No output

Example

using (var client = new ApiServiceClient())
{
	client.ClientCredentials.UserName.UserName = "username";
	client.ClientCredentials.UserName.Password = "password";

	var email = new ApiTransactionalEmail
	            {
	                FromAddress = "[email protected]",
	                ToAddresses = new [] { "[email protected]"},
	                CCAddresses = new [] { "[email protected]"},
	                BCCAddresses = new []{ "[email protected]"},
	                Subject = "TestSubject",
	                HtmlContent = "<h1>TestHtmlContent</h1>",
	                PlainTextContent = "TestPlainTextContent",
	                Tags = new []{ "TestTag1", "TestTag2"}
	            };
	
	client.SendTransactionalEmail(email);
}