|
||||||||||||||
|
||||||||||||||
| Comments |
| Pauline Fowler posted on December 23, 2008, 1:38 pm |
| Hi there, im also getting the "Undefined index: email in " error im curios as to why this message is being displayed – from what i’ve read it’s usually a syntax error with a variable not being named properly, for example not matching the name of the form element, but i cant see any errors in the code – If you disable error reporting on the page then i take it the will suppress any future errors if you wanted to expand the script, which wouldn’t be ideal. any ideas why this error pops up? Thanks for the script, Pauline ------------------- Ivan: yes you can use error_reporting() to disable notices which are not an issue to worry about. Otherwise you should use a very strict PHP code which is not that easy to do :) |
| Priyantha posted on November 30, 2008, 8:17 am |
| I put above script in my linux server after sending that it says "Failure" why? i can send email in command line using PHP what is wrong with my server --------------- Veselin: this means that your PHP and server are not configured to allow sending emails using mail() function. Get in touch with your server administrator. |
| lefty posted on November 16, 2008, 10:08 pm |
| I've got an webserver and have created my own form with the submit, however, the email does not go. I'm quite new to this all and wanted to know if I need to have some sort of smtp engine or smtp (email) server of my own to send this or does the right PhP version do everything? If it's only down to the PhP version, which one is the right one? Basically, all I've done is setup standard server 2003 with IIS and DNS on it (am using static IP). --------------- Veselin: window server does not support php mail() function. You will need to send emails using Pear for example. Please refer to our tutorial How to send email with PHP. |
| Ozzie posted on November 15, 2008, 7:41 am |
| I am having problems with these two files. The error I get is File Not Found Firefox can't find the file at /C:/.../contact2.php. ----------- Veselin: it seems that you have the files uploaded in different folder than the one you try to open with you browser I renamed the file in contact.html to call contact.php . |
| Jean Daigneault posted on November 8, 2008, 5:52 pm |
| $ToEmail = 'jeandaigneault@videotron.ca'; What do I need to add to hava a cc sent to the sender? --------------- Veselin: you can put another line like mail($ToEmail, $EmailSubject, $MESSAGE_BODY, $mailheader) or die ("Failure"); but change $ToEmail to send to another email address |
| Maharajan posted on November 6, 2008, 8:13 pm |
| I am trying to use the code. But it display failure message after clicking submit button. ----------- Veselin: this means that PHP you have does not allow email sending using mail() function |
| Lasantha posted on October 20, 2008, 6:58 am |
| thanks a lot |
| brett posted on October 4, 2008, 9:23 am |
| thanx, I was trying to get code to work, and tried a few things, finally your code worked, thanx again |
| Ruwald posted on October 2, 2008, 3:09 pm |
| hay um do you combine the codes right after each other or do you put them seperatly please help me with plz |
| Aysha posted on September 11, 2008, 9:46 am |
| i am getting this error while running this example Notice: Undefined index: email in D:ProjectsVisualSoft Website v2.0CodeOffical Websitetest-pagestest.php on line 10 ------------- Veselin: this is just a PHP notice. You can disable these kind of warnings using error_reporting(0); on the top of your PHP script |