Title: Contact Form Issues
Last modified: August 22, 2016

---

# Contact Form Issues

 *  Resolved [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/)
 * Hi,
    I have two problems with contact form: 1. After successfully submitting 
   the form, screen jumps to the top of the page. You have to scroll down to contact
   form in order to see, that message was send successfully. What I can do in order
   to stay on the contact form seccion after submission? 2. When I receive emails
   sent from contact form, in sender’s name it shows “me”, instead of the name, 
   entered into name box in the contact form. Thats why most of my emails goes durectly
   to spam. What whould I change?
 * Many thanks!

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/topic/contact-form-issues-4/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/contact-form-issues-4/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/contact-form-issues-4/page/2/?output_format=md)

 *  Thread Starter [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841755)
 * First problem has been gone.
    But I am still having problem with second.
 * When I receive emails sent from contact form, in sender’s name it shows as “me”,
   instead of the name, entered into name box in the contact form. That’s why most
   of my emails goes directly to spam. What should I change?
 * Many thanks!
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841765)
 * Hi,
 * This isn’t the reason why it goes to spam. We use “me” as the sender’s name to
   make it easy for the admin to understand that it’s their contact form. Because
   anyone can use any fake emails/name there. 🙂
 * Regards,
    Hardeep
 *  Thread Starter [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841766)
 * Hi, thanks.
    But is there any way to use sender’s name from contact form?
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841788)
 * Hi,
 * In the front-page.php file, you can change the sender’s name by editing this 
   line of the code:
 * `$headers = 'From: '.$name.' <'.$emailTo.'>' . "\r\n" . 'Reply-To: ' . $email;`
 * Regards,
    Hardeep
 *  [Edward G. Shlikas](https://wordpress.org/support/users/edward-g-shlikas/)
 * (@edward-g-shlikas)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841790)
 * I am having the same problem with the contact form. After I submit the contact
   form the site jumps all the way up to the top and you cannot read that it was
   successfully submitted, do you scroll all the way back down.
 *  Thread Starter [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841802)
 * thanks Hardeep.
 * I found the code, and tried to change, but looks like I am doing something wrong.
 * which part of it I have to change in order to get an email with the name entered
   into [your name] field from contact form?
 * thanks.
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841806)
 * Hi,
 * It is exactly what you should use in order to do accomplish what you’re looking
   for. It’s weird that it’s not happening. Try again and send me a screenshot of
   the email you receive. :/
 * Regards,
    Hardeep
 *  Thread Starter [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841815)
 * this is what my code looks like right now:
 *  /* send the email */
 *  if(!isset($hasError)):
 *  $zerif_contactus_email = get_theme_mod(‘zerif_contactus_email’);
 *  if( empty($zerif_contactus_email) ):
 *  $emailTo = get_theme_mod(‘zerif_email’);
 *  else:
 *  $emailTo = $zerif_contactus_email;
 *  endif;
 *  if(isset($emailTo) && $emailTo != “”):
 *  if( empty($subject) ):
    $subject = ‘From ‘.$name; endif;
 *  $body = “Name: $name \n\nEmail: $email \n\n Subject: $subject \n\n Message: 
   $message”;
 *  $headers = ‘From: ‘.$name.’ <‘.$emailTo.’>’ . “\r\n” . ‘Reply-To: ‘ . $email;
 *  wp_mail($emailTo, $subject, $body, $headers);
 *  $emailSent = true;
 *  else:
 *  $emailSent = false;
 *  endif;
 *  endif;
 *  endif;
 *  $zerif_bigtitle_show = get_theme_mod(‘zerif_bigtitle_show’);
 *  if( isset($zerif_bigtitle_show) && $zerif_bigtitle_show != 1 ):
 *  include get_template_directory() . “/sections/big_title.php”;
    endif;
 * ?>
 *  Thread Starter [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841816)
 * I wish I could send you a screenshot of the email.
    But there is no option to
   attach an image to the post…
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841821)
 * Hi,
 * You can just upload the screenshot to a website and share the link here. 🙂
 * Regards,
    Hardeep
 *  Thread Starter [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841826)
 * thanks for tip.
    but instead I just copied the code here: it its not enough to
   determine the problem?
 * if(!isset($hasError)):
 * $zerif_contactus_email = get_theme_mod(‘zerif_contactus_email’);
 * if( empty($zerif_contactus_email) ):
 * $emailTo = get_theme_mod(‘zerif_email’);
 * else:
 * $emailTo = $zerif_contactus_email;
 * endif;
 * if(isset($emailTo) && $emailTo != “”):
 * if( empty($subject) ):
    $subject = ‘From ‘.$name; endif;
 * $body = “Name: $name \n\nEmail: $email \n\n Subject: $subject \n\n Message: $
   message”;
 * $headers = ‘From: ‘.$name.’ <‘.$emailTo.’>’ . “\r\n” . ‘Reply-To: ‘ . $email;
 * wp_mail($emailTo, $subject, $body, $headers);
 * $emailSent = true;
 * else:
 * $emailSent = false;
 * endif;
 * endif;
 * endif;
 * $zerif_bigtitle_show = get_theme_mod(‘zerif_bigtitle_show’);
 * if( isset($zerif_bigtitle_show) && $zerif_bigtitle_show != 1 ):
 * include get_template_directory() . “/sections/big_title.php”;
    endif;
 * ?>
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841831)
 * Hi,
 * No it won’t be. Anyways, I’ll try to produce this issue on my site and will let
   you know. 🙂
 * Regards,
    Hardeep
 *  Thread Starter [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841847)
 * Thanks you.
    Looking forward
 *  [w3inet](https://wordpress.org/support/users/w3inet/)
 * (@w3inet)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841849)
 * How did you fix Problem number one page going to top after sending form?
 *  Thread Starter [MooK](https://wordpress.org/support/users/kubelyan/)
 * (@kubelyan)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/#post-5841853)
 * I didn’t fix it.
    just realized it’s doing only on Firefox. But is this point
   will wait til the authors of the theme will find the solution…

Viewing 15 replies - 1 through 15 (of 32 total)

1 [2](https://wordpress.org/support/topic/contact-form-issues-4/page/2/?output_format=md)
[3](https://wordpress.org/support/topic/contact-form-issues-4/page/3/?output_format=md)
[→](https://wordpress.org/support/topic/contact-form-issues-4/page/2/?output_format=md)

The topic ‘Contact Form Issues’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/zerif-lite/1.8.5.49/screenshot.
   png)
 * Zerif Lite
 * [Support Threads](https://wordpress.org/support/theme/zerif-lite/)
 * [Active Topics](https://wordpress.org/support/theme/zerif-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/zerif-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/zerif-lite/reviews/)

 * 32 replies
 * 13 participants
 * Last reply from: [Vijay](https://wordpress.org/support/users/vijay475/)
 * Last activity: [10 years, 2 months ago](https://wordpress.org/support/topic/contact-form-issues-4/page/3/#post-5841944)
 * Status: resolved