1 post
  • Has been part of the Envato Community for over 2 years
  • Has collected 1+ items on Envato Market


I don’t know if this is the correct venue, if not please direct me to where I can get assistance.

Here is my dilemma, I purchased an HTML web theme with a contact form, but the form doesn’t work. This is my 7th purchase and the first time I have encountered this sort of problem. I changed the email in the php file. But, still nothing gets sent to email. Unfortunately, my skills are limited and I do not know how to fix this issue. I have put in a support ticket with the vendor, but the only answer I received asked me to give them FTP access, which I cannot do. I have yet to hear back from them. Any ideas why the form doesn’t work? I know it isn’t my server. I ran test code and received a reply to my email with that code.

Thank you for reading and any help you can provide is greatly appreciated!!!!

Here is the form code:

<form method=”post” action=”?” class=”met_contact_form clearfix”> <input type=”text” name=”NameSurname” required=”” placeholder=”* Name and Surname”> <input type=”email” name=”EMail” required=”” placeholder=”* E-Mail”> <textarea name=”Message” required=”” placeholder=”* Message”></textarea> We’ve received your message.
Thank you! <input type=”submit” value=”SEND” class=”met_bgcolor met_color2”> </form>

Here is the php code:

<?php if(!isset($_POST[“nl_sub”])){ //WELCOME AJAX CONTACT FORM MAILER

//Stripping tags so if even user writes tags like or , these are just getting cleared. //Making ready the content for e-mail by the way $mailContent = ’’; foreach($_POST as $key => $val){

$_POST[$key] = strip_tags($val);
    $mailContent .= $key.' : '.$_POST[$key].'
'; }

//Getting rid of backslashes $mailContent = $mailContent != ”” ? stripslashes($mailContent) : ’’;

//Which mail address you are going to use $fromMail = ‘xxxxxxx@yahoo.com’;

//Which mail address will contain emails coming from contact form $toMail = ‘xxxxxxx@yahoo.com’;

//Subject of mail $subject = ‘E-Mail From YourDomain.Com’; }

$headers  = "MIME-Version: 1.0 \n";
$headers .= "Content-type: text/html; charset=utf-8 \n";
$headers .= "From: "     . $fromMail. " \n".
    "Reply-To: " . $fromMail. " \n".
    "X-Mailer: PHP/" . phpversion();
if(mail($toMail, $subject, $mailContent, $headers)){
    echo '1';
    echo '0';

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes