I would like send mail with Mailgun. Anyone could help me?
I think to create a function that read from a record "To", "Subject", "Text".
Mailgun c# code is this, how can I translate it in Zoho Creator?
- public static RestResponse SendSimpleMessage() {
- RestClient client = new RestClient();
- client.BaseUrl = "https://api.mailgun.net/v3";
- client.Authenticator =
- new HttpBasicAuthenticator("api",
- "key-bfac6e09124785239032fbae930fdd69c");
- RestRequest request = new RestRequest();
- request.AddParameter("domain",
- "sandboxf5eeef24d50c45edssf8fce7fb6304c4.mailgun.org", ParameterType.UrlSegment);
- request.Resource = "{domain}/messages";
- request.AddParameter("from", "Mailgun Sandbox <postmaster@sandboxf5eeef24d50c45edssf8fce7fb6304c4.mailgun.org>");
- request.AddParameter("to", "Maurizio <maurizio.blg@cltn.it>");
- request.AddParameter("subject", "Hello Maurizio");
- request.AddParameter("text", "Congratulations Maurizio, you just sent an email with Mailgun! You are truly awesome! You can see a record of this email in your logs: https://mailgun.com/cp/log . You can send up to 300 emails/day from this sandbox server. Next, you should add your own domain so you can send 10,000 emails/month for free.");
- request.Method = Method.POST;
- return client.Execute(request);
- }
-