protected override void ProcessRecord() { var message = new EmailmanagerMessage { From = From, To = To, Subject = Subject, HtmlBody = HtmlBody, TextBody = TextBody, ReplyTo = ReplyTo, }; var response = EmailmanagerClient.SendMessage(message); WriteObject(response); }
protected override void ProcessRecord() { var emailmanagerClient = new EmailmanagerClient(ServerToken); WriteObject(emailmanagerClient); }