If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register or Login
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

[RESOLVED] How to email from WEBpage?

Dear Friends,

I have built a website with a Page named Contact.html, here the viewer will enter all his data Like
Name |__________|
Email |__________|
Sub: |___________|
Msg |______________________________________________________|

| Submit| < when he clicks the Submit button the msg will be mailed to the email address mentioned already in the Contact.html page.

Re: How to email from WEBpage?

Dear Peejavery,
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
Rahul

Re: How to email from WEBpage?

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.

Re: How to email from WEBpage?

Dear PeejAvery,

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.

Re: How to email from WEBpage?

Dear PeejAvery,

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

Re: How to email from WEBpage?

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.

Re: How to email from WEBpage?

Dear PeejAvery,

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 ?

Re: How to email from WEBpage?

Dear PeejAvery,

I modified your code ,only the part where I need to input "contactus@cormed.co.in" (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 contactus@cormed.co.in !!!