Demo entry 6763681

SocketLabs BasicMessage C#

   

Submitted by anonymous on Oct 24, 2018 at 22:06
Language: C#. Code size: 404 Bytes.

var client = new SocketLabsClient(serverId, apiKey);

var message = new BasicMessage();

message.Subject = "Sending A BasicMessage";
message.HtmlBody = "<html>This is the Html Body of my message.</html>";
message.PlainTextBody = "This is the Plain Text Body of my message.";
message.From.Email = "from@example.com";
message.To.Add("recipient@example.com");

var response = client.Send(message);

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).