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

need Array help
This is what I have to do.
$teamname[1] = "Red Sox"
$teamname[2] = "Gian

Inter Company -- Resources Related Billing (Services Industry)
Hello,

My company has a scenario where:
Company A bills Company C for INTER (cross

Socket Server
In my following socket server, I am trying to listen to a connection through port 12345 in my web br

RadioButtonList data selection
view plaincopy to clipboardprint?

Mail from PHP form not always ending up in my inbox?
Hi guys,

I'm a real newbie to PHP and have managed to put together a simple mail form that se

Posting to another Site?
I have software that people install.
When they install it, is there a way to make it post their d

http to https
Hi,

Is there any specific method/condition to move an http:// page to https:// ?

Grouping and sorting results
Please help with this query.

I have 2 tables in a database, countires and cities. states look

TimeStamp Column Problem...
I'm mad at my self and thinking I'm a little retarded. It just be some one mistake I'm missing here.

Need help PLEASE
ok i have this warning showing up

Warning: in_array() [function.in-array]: Wrong datatype for

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