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

Character increment
Hi,

I am facing a scenario like above,but in my case i want to show up like Col A,Col B etc..

Looking for help reading a .txt or .ini file and outputting the info.
I have a file called Info.ini and It has the following info:
Code: [General]
Online=0
I wou

Pagination won't carry results past page 2.
Hi all,

I've worked out my pagination script and its paginating fine until I click next from

ctype() validation - allowing illegal characters
Hello,
I use ctype() to filter and validate a user form. However, I am trying to allow certain c

Change of partner analyse in sales orders
Hello,

I changed the partner analyse for sales orders and added a new mandatory partnerro

How to form a xml form table with a single sql statement..?
Hi everyone,
I don't know if this is going to be a duplicate thread but i couldn't

no idea what to do...
I'm fed up. I had issues with code that I have working on a different site that didn't work on my cu

Problem with the Update command used with a sqldataadapter
I'm connected to a database on an SQL Server and I'm using a sqldataadapter, sqlconnection, sqldatas

losing variables between php brackets
Hi

have got this code:
Code: $id=mysql_result($result,0,"itemid");
$title=mys

Form submissing with PHP and JQuery/Ajax
I have searched everywhere, but cannot find a solution for this... I have worked all day trying to g

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