addtrain Posted August 13, 2007 Share Posted August 13, 2007 Question: is their a way to do sendmail() in javascript? is their any other sendmail scripts besides CGI, PHP, and .Perl??? freewebs.com & bravenet.com can send me an email via form, with whatever the person typed into the form, how can i do it WITHOUT php, cgi, or .perl (my host will not accept php sendmail, dosent accept cgi or .perl files) PLEASE HELP! Quote Link to comment https://forums.phpfreaks.com/topic/64645-sendmailin-java/ Share on other sites More sharing options...
php_tom Posted August 13, 2007 Share Posted August 13, 2007 The problem is that when you send an email, some program needs to connect to a mailserver somewhere. But you can't do that client-side because: 1) It's non-secure (Hackers could write a client-side script that sends a virus to ten people FROM YOUR ACCOUNT everytime you visit a website. 2) What if you (the client) don't have an email program installed? So email has to be sent server side, which limits it to pretty much CGI scripts (PHP, Perl, etc). Sorry. My only other suggestion is if you have a bit of space on a server with PHP's mail() enabled (e.g. do you have any server space from school/work that you could just put the sendmail.php script on?) Quote Link to comment https://forums.phpfreaks.com/topic/64645-sendmailin-java/#findComment-322356 Share on other sites More sharing options...
RichardRotterdam Posted August 13, 2007 Share Posted August 13, 2007 you could use java too if you use JSP reading your subject because Java!=JavaScript Quote Link to comment https://forums.phpfreaks.com/topic/64645-sendmailin-java/#findComment-322510 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.