{"id":27651,"date":"2018-12-10T09:25:14","date_gmt":"2018-12-10T16:25:14","guid":{"rendered":"http:\/\/devblogs.microsoft.com\/premier-developer\/?p=27651"},"modified":"2019-02-14T20:17:42","modified_gmt":"2019-02-15T03:17:42","slug":"building-a-simple-contact-form-with-azure-functions","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/premier-developer\/building-a-simple-contact-form-with-azure-functions\/","title":{"rendered":"Building a Simple Contact Form with Azure Functions"},"content":{"rendered":"<p>App Dev Manager <a href=\"https:\/\/www.linkedin.com\/in\/isaacrobinlevin\/\">Isaac Levin<\/a> explorers how easy it is to build a simple contact form that generates an email message using Azure Functions.<\/p>\n<hr \/>\n<p><a href=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/function-setup1.png\"><img decoding=\"async\" title=\"function-setup\" src=\"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-content\/uploads\/sites\/31\/2019\/01\/function-setup_thumb1.png\" alt=\"function-setup\" width=\"461\" height=\"267\" align=\"right\" border=\"0\" \/><\/a>I write about Azure Functions over and over again because they are the perfect solution for what I am trying to do, small little things that I don\u2019t want to spin up a larger unnecessary app to do it. That along with the fact they just run and go away, the price point for the things I do make it basically free.\nI recently remapped my blog to a static website hosted in Azure Blob Storage. During the process, I decided that it would be nice to have a way for people to contact me if they wanted to (no idea why they would). I looked at some options around contact form services and I was not really impressed with the free options and didn\u2019t want to create some account to manage. Then I had a thought, why not have an Azure Function that I could http post to and sent an email from there, <em>easy peasy<\/em>. And boy was it!<\/p>\n<p><a href=\"https:\/\/www.isaaclevin.com\/post\/azure-function-contact-form\/\">Continue reading on Isaac\u2019s blog.<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>I write about Azure Functions over and over again because they are the perfect solution for what I am trying to do, small little things that I don\u2019t want to spin up a larger unnecessary app to do it. Then I had a thought, why not have an Azure Function that I could http post to and sent an email from there&#8230;<\/p>\n","protected":false},"author":582,"featured_media":27652,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[25],"tags":[24,156,3],"class_list":["post-27651","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-azure","tag-azure","tag-azure-functions","tag-team"],"acf":[],"blog_post_summary":"<p>I write about Azure Functions over and over again because they are the perfect solution for what I am trying to do, small little things that I don\u2019t want to spin up a larger unnecessary app to do it. Then I had a thought, why not have an Azure Function that I could http post to and sent an email from there&#8230;<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/27651","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/users\/582"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/comments?post=27651"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/posts\/27651\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media\/27652"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/media?parent=27651"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/categories?post=27651"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/premier-developer\/wp-json\/wp\/v2\/tags?post=27651"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}