Hi Where do I write my emailadress in the code for the contact form? Can you show me with an example? My theme is Colorway. Best Pia Here is the code where I guess I somehow shall write my emailadress? Help if (!isset($hasError)) { $emailTo = get_option('tz_email'); if (!isset($emailTo) || ($emailTo == '')) { $emailTo = get_option('admin_email'); } $subject = '[PHP Snippets] From ' . $name; $body = __('Name: ', 'colorway') . $name . __('\n\nEmail: ', 'colorway') . $email . __('\n\nComments: ', 'colorway') . $comments; $headers = __('From: ', 'colorway') . $name . ' <' . $emailTo . '>' . "\r\n" . __('Reply-To: ', 'colorway') . $email; mail($emailTo, $subject, $body, $headers); $emailSent = true;
PS: I don´t have the Theme Editor in my controlpanel in WP. But I edit the contactfile via FTP. Are there any other places where I need to change some codes to make the contact form work?
Hello, Doing good!! Really appreciate your efforts... You can add your email id in the below line and add wp_mail instead of mail as well... wp_mail('your email id', $subject, $body, $headers); instead of mail($emailTo, $subject, $body, $headers); Hope it will resolve your issue Do let me know if you need more assistance, Thanks & Regards! Priyanka InkThemes.com