Run Code
|
API
|
Code Wall
|
Users
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Blog
852
//Rextester.Program.Main is the entry point for your code. Don't change it. //Compiler version 4.0.30319.17929 for Microsoft (R) .NET Framework 4.5 using System; using System.Collections.Generic; using System.Linq; using System.Text.RegularExpressions; namespace Rextester { public class Program { public static void Main(string[] args) { //Your code goes here Program.SendSimpleMessage(); Console.WriteLine("Hello, world!"); } public static RestResponse SendSimpleMessage() { Console.WriteLine("Hello, world 1 !"); RestClient client = new RestClient(); Console.WriteLine("Hello, world 1 2 !"); RestClient client = new RestClient(); client.BaseUrl = "https://api.mailgun.net/v2"; client.Authenticator = new HttpBasicAuthenticator("api", "key-3ax6xnjp29jd6fds4gc373sgvjxteol0"); RestRequest request = new RestRequest(); request.AddParameter("domain", "samples.mailgun.org", ParameterType.UrlSegment); request.Resource = "{domain}/messages"; request.AddParameter("from", "Excited User <me@samples.mailgun.org>"); request.AddParameter("to", "sergeyo@profista.com"); request.AddParameter("to", "serobnic@mail.ru"); request.AddParameter("subject", "Hello"); request.AddParameter("text", "Testing some Mailgun awesomness!"); request.Method = Method.POST; return client.Execute(request); } } }
run
|
edit
|
history
|
help
0
Please
log in
to post a comment.
x=msgbox("Your Message Here", Button+Icon, "Your Title Here")
Find Highest,Lowest and average using two dimensional arrays
2 3
abdurrahimcan@gmail.com
Ordinalator
Command design pattern
Enigme
Encapsulation and abstration
Just tries to add/remove items to the list
aaa
stackse - search stackoverflow differently
Please log in to post a comment.