Jump to content

The Specified Module Cannot be Found


Recommended Posts

Hi Everyone,

For some reason, on a couple of websites that have a email form that you submit, when a user submits they get an error saying 'The specified Module Cannot Be Found'.  I am fairly new in php administration, so I don't know what to do.  I couldn't find any php error logs about this.

 

Here is the php code for one of the sites:

 

<?php

/*Here we are going to declare the variables*/

$name = $_POST['name'];

$email = $_POST['email'];

$message = $_POST['message'];

 

//Save visitor name and entered message into one variable:

$formcontent="Visitor Name: $name\n\nFEEDBACK: $message";

$recipient = "[email protected]";

$subject = "ECE Grants Contact Form";

$mailheader = "From: $email\r\n";

$mailheader .= "Reply-To: $email\r\n";

$mailheader .= "MIME-Version: 1.0\r\n";

mail($recipient, $subject, $formcontent, $mailheader) or die("Failure!");

echo "Thank You!<br>\n";

echo "We have received your message!<br>\n";

//echo $mailheader;

//echo "<br>\n";

//echo $mailheader1;

//echo "<br>\n";

//echo $recipient1;

?>

 

Does anyone know what might be causing this? 

Link to comment
https://forums.phpfreaks.com/topic/247056-the-specified-module-cannot-be-found/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.