<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Nelson Chinedu</title>
    <description>The latest articles on DEV Community by Nelson Chinedu (@iamcodeburst).</description>
    <link>https://dev.to/iamcodeburst</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F160798%2F2e3fe402-c73d-4372-bd33-f94ecb6ff09e.jpg</url>
      <title>DEV Community: Nelson Chinedu</title>
      <link>https://dev.to/iamcodeburst</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/iamcodeburst"/>
    <language>en</language>
    <item>
      <title>How to send contact form data to an email address without server-side language</title>
      <dc:creator>Nelson Chinedu</dc:creator>
      <pubDate>Sun, 31 May 2020 21:42:18 +0000</pubDate>
      <link>https://dev.to/iamcodeburst/how-to-send-contact-form-data-to-an-email-address-without-server-side-language-4j1l</link>
      <guid>https://dev.to/iamcodeburst/how-to-send-contact-form-data-to-an-email-address-without-server-side-language-4j1l</guid>
      <description>&lt;p&gt;Sending of form data to an email address requires a backend developer to make use of a server-side language which can be either PHP, NodeJS, e.t.c. by writing some logic codes to interact with the client-side (Front-end) to take some action by submitting the form data to a specified email address if all validations are meant (if there is any). But It's okay if you don't know any server-side language for now.&lt;/p&gt;

&lt;p&gt;Form data is an essential part of a web application by getting in touch with your visitors or customers that sends a message across.&lt;/p&gt;

&lt;p&gt;So in this article, we will be demonstrating this by creating a contact form using the below outlined.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;HTML5&lt;/li&gt;
&lt;li&gt;CSS3&lt;/li&gt;
&lt;li&gt;NETLIFY&lt;/li&gt;
&lt;/ol&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;HTML =&amp;gt; according to &lt;a href="https://en.wikipedia.org/w/index.php?cirrusUserTesting=control&amp;amp;sort=relevance&amp;amp;search=html&amp;amp;title=Special:Search&amp;amp;profile=advanced&amp;amp;fulltext=1&amp;amp;advancedSearch-current=%7B%7D&amp;amp;ns0=1" rel="noopener noreferrer"&gt;Wikipedia&lt;/a&gt;, Hypertext Markup Language is the standard markup language for documents designed to be displayed in a web browser.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;CSS =&amp;gt; according to &lt;a href="https://en.wikipedia.org/w/index.php?cirrusUserTesting=control&amp;amp;sort=relevance&amp;amp;search=css&amp;amp;title=Special:Search&amp;amp;profile=advanced&amp;amp;fulltext=1&amp;amp;advancedSearch-current=%7B%7D&amp;amp;ns0=1" rel="noopener noreferrer"&gt;Wikipedia&lt;/a&gt;, is a style sheet language used for describing the presentation of a document written in a markup language like HTML.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;NETLIFY =&amp;gt; according to &lt;a href="https://en.wikipedia.org/w/index.php?cirrusUserTesting=control&amp;amp;sort=relevance&amp;amp;search=Netlify&amp;amp;title=Special:Search&amp;amp;profile=advanced&amp;amp;fulltext=1&amp;amp;advancedSearch-current=%7B%7D&amp;amp;ns0=1" rel="noopener noreferrer"&gt;Wikipedia&lt;/a&gt;, is a cloud computing company that offers hosting and serverless backend services for web applications and static websites. So in essence we will be deploying/hosting our little project to Netlify for free.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;N:B JavaScript can be added into the mix for Client-side validation for browsers that don’t support HTML5.&lt;/p&gt;




&lt;p&gt;Before continuing with the process, we need to create an account (signup), on &lt;a href="https://app.netlify.com/signup" rel="noopener noreferrer"&gt;NETLIFY&lt;/a&gt; by using any option provided either connecting the account with GitLab or Github by granting access to netlify, that is if you have one or by using just email. But in this case, I am using an email option to signup.&lt;/p&gt;

&lt;p&gt;N:B We will be using sample codes to create our form from &lt;a href="https://www.w3schools.com/howto/howto_css_contact_form.asp" rel="noopener noreferrer"&gt;w3schools&lt;/a&gt; to save up time.&lt;/p&gt;




&lt;p&gt;&lt;strong&gt;TODO&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Create a folder on your desktop to keep hold of the files needed.&lt;/li&gt;
&lt;li&gt;Open any text editor of your choice to create/save the &lt;code&gt;index.html&lt;/code&gt; and &lt;code&gt;index.css&lt;/code&gt; in the folder created earlier.&lt;/li&gt;
&lt;li&gt;Create an account on &lt;a href="https://app.netlify.com/signup" rel="noopener noreferrer"&gt;NETLIFY&lt;/a&gt;, to be signed in.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Folder structure&lt;/strong&gt;&lt;br&gt;
&lt;code&gt;- contact-form&lt;/code&gt;&lt;br&gt;
&lt;code&gt;|---- index.html&lt;/code&gt;&lt;br&gt;
&lt;code&gt;|---- index.css&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;#open the index.html file, to add the below sample code in any text    &lt;br&gt;
 #editor.&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1vivnhvaj3sc0pkufztg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F1vivnhvaj3sc0pkufztg.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;code&gt;#open the index.css file, to add the below sample code in any text    &lt;br&gt;
 #editor.&lt;br&gt;
&lt;/code&gt;&lt;br&gt;
&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvgy2wjcrxhsvsqh9mxm4.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fvgy2wjcrxhsvsqh9mxm4.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;N:B Since we are making use of NETLIFY service for the sending of emails we need to add some attributes on the HTML form tag, which is &lt;code&gt;method="POST”&lt;/code&gt; &lt;code&gt;name="contact"&lt;/code&gt; &lt;code&gt;data-netlify=”true”&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;So next, is to drag the folder we created that holds the files to NETLIFY for deployment. and wait a bit for the site to be deployed. That’s if you are logged in to NETLIFY.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwp715inely80jw6phsg5.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fwp715inely80jw6phsg5.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next up is to add some required config needed to receive notifications when the contact form is filled up.&lt;/p&gt;

&lt;p&gt;So let’s head to the &lt;code&gt;forms&lt;/code&gt; section tab and click on it, then click on &lt;code&gt;settings and usage&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fn5utl0rgvo5i0z2yzu3j.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fn5utl0rgvo5i0z2yzu3j.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Then next up is to click on the &lt;code&gt;Add notification&lt;/code&gt; button and click on &lt;code&gt;Email notification&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0dbuhttc6n1x1ecmfgwy.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F0dbuhttc6n1x1ecmfgwy.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Clicking on the &lt;code&gt;Email notification&lt;/code&gt; will pop up a modal asking for some details as seen in the image below.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Event to listen for:&lt;/code&gt; As the name suggest, will listen for new form 
submission.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Email to notify:&lt;/code&gt; It will be the email to receive the message when 
the contact form is filled up and submitted.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;Form:&lt;/code&gt; Here you select the form you want, with the name you added on 
the form tag.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpjx8br7yexduumcuqlw7.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpjx8br7yexduumcuqlw7.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Next up is to click on the deployed link provided for the project as seen/shown on the image below&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpoxd9ceove6gf9ve9960.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fpoxd9ceove6gf9ve9960.jpeg" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So let’s test things up&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fnhl27d8d2w8yuiv2yfkb.gif" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fnhl27d8d2w8yuiv2yfkb.gif" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;So looking at it all seems to work with the contact form details been sent to the email address specified. But we can still change things up by making an edit to the random site URL given to us to our own specified URL, By following the steps on the image below.&lt;/p&gt;

&lt;p&gt;Click on &lt;code&gt;settings&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fd8hqlxrdowr2413kyzfd.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fd8hqlxrdowr2413kyzfd.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Scroll down and click on &lt;code&gt;Change site name&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F41wsxjkdaol70yyldarv.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2F41wsxjkdaol70yyldarv.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Which will pop up a modal box, enter the new URL you want and click on &lt;code&gt;save&lt;/code&gt; if the URL specified is available.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fhtrlqqfstbo0dhll9egi.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fi%2Fhtrlqqfstbo0dhll9egi.png" alt="Alt Text"&gt;&lt;/a&gt;&lt;/p&gt;




&lt;p&gt;Now the URL has been from the random URL given to a more meaningful URL specified.&lt;/p&gt;

&lt;p&gt;Thank you for your time If you read through up to this point, and please do share, like, and comment if found helpful.&lt;/p&gt;

</description>
      <category>html</category>
      <category>css3</category>
      <category>netlify</category>
      <category>beginners</category>
    </item>
  </channel>
</rss>
