sendmail code suddenly not working


Posted on 16th Feb 2014 07:03 pm by admin

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 = "someone@earth.com";
$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

No comments posted yet

Your Answer:

Login to answer
131 Like 19 Dislike
Previous forums Next forums
Other forums

search query in mysql in php problem
my search query wont work, i know, that my codes are correct.please help

Code: [Select]&l

"SEO" URLs
Hey, I'm wondering how to go about creating and using these types of URLs. I'm presuming it's PHP th

Multiple upload and Resize
I would like some help on my script I have the for my index.php

////

<html&

blank page.... nothing is happening.
I'm new to a lot of this but in the last 24hrs have learned a lot.
Installed latest version of my

Simple MySQL script is not working
Hey guys,

Just familiarizing myself with PHP and MySQL. I am following along in the O'Reilly

array help
Does anyone know how to require 10 text fields for individual grades and output class average? (10 p

undefined offset help
Hi All,

I kept getting undefined offset PHP notice for a simple for loop. For eg
$va = arr

FTP Programs
Here is a list of commonly suggested FTP Programs to use:

FileZilla
SmartFTP
CuteFTP

ScriptManager History and Opera Issue
I am having an issue in opera with the ScriptManager. I have a ScriptManager on a page with history

Can't get the unicode character
I'm trying to get some text from various parts of a file. I have converted the file to hex (bin2hex)

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash