Link to home
Start Free TrialLog in
Avatar of ibrahim52
ibrahim52Flag for United Arab Emirates

asked on

Add Email Address in SEND EMAIL button

I got CONTACT US page in my website.Where there is a contact form i have setup but i am not getting that how to make the SEND EMAIL button to make it work so i can recieve the message directly on my email address
Untitled.jpg
Avatar of ibrahim52
ibrahim52
Flag of United Arab Emirates image

ASKER

This is the source code and please tell me where i should add the code of your solution.
code.txt
Avatar of Michel Plungjan
Change
<form name="contactform">
to

<form name="contactform" action="mailto:ibrahim52@hisprovider.com" enctype="text/plain">


unless you want to use the safer method of using your ISPs sendmail (if they have it)

The above means that the CLIENT must have a working email setup
No success.I tried to edit and checked but not working.
I forgot
method="post"



<form name="contactform" action="mailto:ibrahim52@hisprovider.com" enctype="text/plain" method="post">


I received

name=Michel
email=Test@test.test
attn=Technical Support
msg=Test message
Submit=Send Email


oh alright,let me check
No its still not working.
That is not very informative
What did you do. What did your email client do. Do you HAVE an email client installed. Which one. What platform. Did you try on more computers. Did you get any error message
oh k,you mean to say whenever the visitor will click that Send button.The default email client will appear ?
No. with POST, the normal thing that happens on windows is that you are warned that this email will be sent with your email client.
with GET it will open the client, but then you need to use subject and body as field names to get the contents into the email.

That is how mailto: works. If that is not how you want it (for example because it is not certain that the user has an email client (for example in an internet cafe or on a phone), then you need to use a server mailing process. Most ISPs have sendmail.
exactly,i need that.But how should i setup
depends on your server/ISP.

Look at their support pages.
Hmmm..Then i guess i should contact them and ill let you know.Thanks by the way
My problem has still not been resolve.Can i re-open this post?
Thank you very much.Well so as i have posted that screenshot and i tried to do exactly posted here but still i am not recieving any mail on my mentioned email address.So i am posting my webpage.Please have a look

codes.txt
but I have already answered this in comment #22937523

<form name="contactform">

does NOT have an ACTION so of course it does nothing,

Change it to

<form name="contactform" action="mailto:ibrahim52@hisprovider.com" enctype="text/plain" method="post">

to use mailto or

<form name="contactform" action="theNameOfTheMailProgramOfYourProvider.php" method="post">
to use the program suppied by your provider. It could be called
sendmail.php or similar




and change
ibrahim52@hisprovider.com
to your valid email address
yeah thats what,i am extremely sorry.I just checked the HTML ,the command wasnt mentioned.I am rechecking and ill let you know.Thank you.
Alright,so i have done the editing.Now if i am trying from internet explorer i am hving one pop up with this message

Could not perform the operation because the default mail client is not properly installed.
ASKER CERTIFIED SOLUTION
Avatar of Michel Plungjan
Michel Plungjan
Flag of Denmark image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thank you
May I ask why a "B" grade? I believe I have fully explained all issues.
But still the problem has not been resolved on my webpage.I didnt mean to give B intentionally.
Sometimes a "NOT POSSIBLE" is a valid answer - if the client does not install a mail client, then no-one can help you.

I mean it is the same if your client does not have a computer, then they cannot send you mail. That I cannot help with of course

I have explained in details what to do with your form and suggest you use a server mailer - you need to contact your ISP for that

But i am having one more website of my company with the same look of the page.That works like a charm.But this page doesnt work.
So show me both pages and I will see if I can see what the difference is