Use get_option with $emailTo on contact page
Is this what you are looking for? You want to get the option and output it? $emailTo = wpJediOptions::get_option(‘my_option’, ’email_1′); echo $emailTo;
Is this what you are looking for? You want to get the option and output it? $emailTo = wpJediOptions::get_option(‘my_option’, ’email_1′); echo $emailTo;
For SMTP and Gmail, you will need turn on 2 step verification, then create an App specific password in security panel of google account. Use your email and that password as login credential. You’ll also need use TSL or SSL for SMTP. Hope this help!
You don’t need to pass the from name and email to PHPMailer in your code as it will take it from $headers so try the following: add_action( “phpmailer_init”, “send_smtp_email” ); function send_smtp_email( $phpmailer ) { // ini_set(“sendmail_from”,”[email protected]”); // ini_set(“sendmail_path”,”[email protected]”); // Define that we are sending with SMTP $phpmailer->isSMTP(); // The hostname of the mail server … Read more
I noticed that require(), require_once(), include() and include_once() methods were somehow not working. The files that were called using these methods were not being called and the code stopped executing forward from this point. After a lot of Googling and R&D I didn’t find any solution to making the above methods work. So I decided … Read more
While Jetpack is a plugin, it’s developed by WordPress and has contact forms as standard. There are some other useful features such as stats, etc. so it’s definitely worth a look. https://jetpack.com/
EDIT TL;DRYour page is refreshing because you tell the form to load a new page (the page specified under action). Longer answerThe reason the page refreshes is because your form has an action associated with it. When I viewed your page yesterday, I saw the AJAX routine complete, and then the page refreshed. Why? Because … Read more
The easiest way for me was to create a plugin. The plugin has code to handle the AJAX request. DO NOT add code to admin-ajax.php! The WordPress Codex has a great tutorial on how to do this. That’s definitely the place to start.
The way to determine what to change is to use browser development tools, like Firebug on Firefox. With those tools, you can determine the CSS that is being used in a specific part of the page. Once you determine the CSS class to change, you can put that CSS in the Custom CSS area of … Read more
The issue you are having is because you are using the users name and email address from the contact form submission when you should be using your own website domain email address as the error states. If you do not not have any emails set up on the domain, I would recommend you use a … Read more
Working with Contact Form 7 pipes