From the course: Custom WordPress Plugins: Design, Develop, and Distribute
Unlock this course with a free trial
Join today to access over 24,400 courses taught by industry experts.
Integrating with email services and storing data - WordPress Tutorial
From the course: Custom WordPress Plugins: Design, Develop, and Distribute
Integrating with email services and storing data
- You've created a professional contact form plugin, but how do you actually get the data that's input to the form from the form to you? That involves integrating the contact form with an email service or storing and retrieving the data yourself. Some popular services that offer form submission integrations are Mailgun, SendGrid, and many more. Since we want to own as much as the process is possible and make this plugin one that could be customized and built upon by everyone, let's get our information in a different way. We are going to have the information sent directly to us from the form. To achieve this, we're going to use another WordPress function called WPMail. What WPMail does is once your form has been submitted, the client gets a success message and the form is sent directly to you. The email you have set as your administrative email for your website is where it goes. Let's set up our contact form using WPMail. Navigate to your contact-form.php file again. In your course…