Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Mail Question

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can i make a mail form to be submited to my mail
klain@yahoo.com without opening outlook or any other
mail programs just submit to me directly the current time.
 
your best bet would be to use server side technologies.

Although it would require a little bit more of a setup some commercial Internet Service Poviders (ISP) provide such a service.

Ask in the PHP forum. Maybe they can help. PHP is a lot like JavaScript except it is all on the server and sends HTML only (with a few minor exceptions).

With PHP you can call a mail program that send the information it received from a form. Gary Haran
 
xutopia is correct that what you need is a server function to send your mail. If you are able to use .asp then you could use the CDONTS object and send mail that way.

Roj
 
And also (not safe method) just put something like this?

<form action=&quot;mailto:klain@yahoo.com&quot; method=&quot;post&quot;>
 
That method is no longer being supported in all browsers. And also requires that the person using it has a email program set up on there PC.

Roj
 
Hi there,

It's true that it's better to do it on the server-side. You have several options here, the most popular being PHP, ASP, JSP, ColdFusion and CGI. I have been working with the 3 first technolgies (ASP, PHP and JSP) and I feel more comfortable with PHP (even if I find JSP the more elegant of all these languages). The choice pretty much depends on your infrastructure (OS, server,...) and how familiar you are with some technologies (ASP will look familiar to you if you know VB when PHP has a C-like syntax, for instance). Whatever your choice is, the solution is rather easy to implement and there is a lot of documentation available everywhere on the web. In PHP for instance, you just have to call the function mail(), along with some parameters, and it will do the trick.

JavaScript is an ideal complement here if you want to validate user input.

I hope this helps.

Cheers,

Xavier
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top