Jump to content

sendmail code suddenly not working


mimintweak

Recommended Posts

Hi Guys, I maintain 3 sites (including my own) I use the following code from a french webmaster that gave me permission to use it. He designed & coded one of them. Now the code seems to have stopped working for some reason, Is that usual?

<?php

 

$entetes = "From: $_POST[sender]" ;

$destinataire = "[email protected]";

$send_mail = mail($destinataire, $_POST[subject], $_POST[Message],$entetes);

if (!$send_mail)

{ echo "<p>Error while sending. Please contact us by phone.</p>" ; }

 

else

{ echo "<p>Your message has been sent successfully. Thank You for contacting us.</p>" ; }

?>

I would translate the french words if I was sure of what they meant, not sure what entetes is but assume destinaire is destination.

Appreciate any help

Link to comment
https://forums.phpfreaks.com/topic/178989-sendmail-code-suddenly-not-working/
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.