I have built a website with a Page named Contact.html, here the viewer will enter all his data Like
| Submit| < when he clicks the Submit button the msg will be mailed to the email address mentioned already in the Contact.html page.
I tried a lot of combinations, but failed..Can you guys help me ?
Thanks for replying , I dont have the faintest idea how to mail from webpage,
I just googled some forms downloaded them & tried but failed.
I have a website http://www.cormed.co.in , there I have this Contactfrm.html & email_form.php files , I just did whatever was mentioned in that page how to do it.
But nothing worked out it only says You mail is sent successfully , we will contact you later.( This is a string already inserted at the page it self.!!
Please tell me the steps in order so I can make it work
Thank you once again
PHP's mail() function will not return an error to the PHP console. That's why it says it's successful. And since you have no idea what I'm talking about concerning PHP...you need to contact the server admins of that domain.
If the post was helpful...Rate it! Remember to use [code] or [php] tags.
After much fiddling with all this stuff, I am completely lost.I am attaching the Contact.html page to you please rectify the problem & send back.The Server Company says , their side is OK, but i have some errors in the code.
The More I see the braces "}" I get more confused & dizzy..Lets comeback to normal html email sending page, Which I have uploaded to you yesterday.
Please see the mistake & let me know.
The Domain people are saying ,that their side is OK, but I might have some Coding problems(Although I did not Code it ! ) Please rectify the page & send back , I will have it working
But the Contact.php shows all the boxes & msgbox properly along with submit button.
I can not use it???? !!!
I never said that at all. Do you honestly never read the posts?
Originally Posted by dsrahul
$body is empty...so the e-mail won't have any text
What has to be done in the $body part?
Opposite of empty = fill. So...fill the variable with text!
In the past I have given up on you simply because you put no effort into your work at all. You expect everyone else to do everything for you. That is not why CodeGuru exists! So...here is a completely functional example of PHP mailer (which I have already linked too as well). If you cannot figure it out from this...then you need to research and learn.
Thank you so much, You are a real friend.I am eager to learn, the Books , confuse me. Programmers like you, they know the subject well, I can always learn from them, but when you need to learn from them, they are either offline or they do not reply. The problem with me is , I learn the first line, then When i Study the 2nd line, I forget the first line., after a few days I forget the whole thing.have pity on me.
Anyway I am now trying the thing with your code.If anything comes across, can I seek help from you ?
I modified your code ,only the part where I need to input "email@example.com" (My Domain ),
Uploaded the file clicked on Contact Page , The Boxes appeared, Then I filled up the boxes,Clicked submit.
The page became white.No Error Message, No "Your mail is sent".
& the Mail was also not seen in the inbox of firstname.lastname@example.org !!!
I have tried with Validation also See:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd"> <html> <body>