Jump to content
xisto Community
Sign in to follow this  
cool1405241471

Code To Send An Email From A Form

Recommended Posts

<form action="http://forums.xisto.com/no_longer_exists/; method="post">
<font face="Arial"><input type="text" name="sender"></font> the sender:<br>
<input type="text" name="sender_email"> sender's mail:<br>
<font face="Arial (hebrew)"><input type="text" name="receiver"></font> to:<br>
<input type="text" name="receiver_email"> email Of receives the announcement:<br>
<font face="Arial (hebrew)"><input type="text" name="subject"></font> the subject:<br>
<input type="submit" value="send">
</form>

Ugly depricated HTML =P

Edited by microscopic^earthling (see edit history)

Share this post


Link to post
Share on other sites

Try

<a href="mailto:[email adress]">Click here to mail me!</a>

Share this post


Link to post
Share on other sites

hey lhunat, what the guy is doing is using a form. you are counting on an emailprogram to mail, but what if the user is on a public computer?besides, you'll get spam if you do that. not within days, but after a while you will!besides that, he uses some server that sends his mail, which is kinda stupid as you can easily use the 'mail' function in php.cool things about that mail function:you can choose the sender. so you can fake mails :)))))you can put it in a for loop. so you can choose to send a thousand times the same mail :)or you can use your database and send the mail to everybody in it.i have no idea why he's using the other server. i guess it's a service they offer and you can put that form on your site without knowing any php... something like thatl

Share this post


Link to post
Share on other sites

i have no idea why he's using the other server. i guess it's a service they offer and you can put that form on your site without knowing any php... something like that

 

<{POST_SNAPBACK}>


Well... using that other server "bool.co.il" saves bandwidth from his own account. And it seems likely that Cool doesn't yet have an account here at Xisto, so his might be on a server that doesn't allow CGI or PHP (or ASP or whatever).

Share this post


Link to post
Share on other sites

I know very well that he's using a form and that mailto uses a clientsided email client. Which is exactly why I posted it. Using forms like this is rather silly, and if you really want to do it, then you should indeed use PHP's mail function. I think you should use mailto since it gives more power to the user, whereas a form is not userfriendly.

 

Although you need to keep in mind that the mail PHP function is disabled on alot of servers out of security conscearns. And if you want to send fake mail, just use your own email client at home? Why make it all so hard? :)

Share this post


Link to post
Share on other sites

How can I add javascript code with html code while sending email

Code To Send An Email From A Form

 

Hi all,

 

I am sending a mail, in that I set the count down timer because if the receiver reads the mail more than 25sec.. Then it should go to db.

For this I have used java script setTimeout() in the mail part with HTML code. But this javascript is not working when receiver receives the email.

 

Should I specify anything in header part to accept javascript?

 

Can any one gives an idea to do this..

 

Regards

Anu,

Share this post


Link to post
Share on other sites

Are you sure this is right all the other one i have herd of have other pages like postit.php and thankyou.php but this one only looks like one page i may be wrong but i dont knowCheers

Share this post


Link to post
Share on other sites

I much prefer to code my own php file to send emails from my web server. You can control which fields you want to have populated, and with a little javascript, you can add validation to the fields so that people can't just hit submit without entering in valid data. It's not hard if you look into it, there's a lot of cool stuff you can do with PHP ;)

Share this post


Link to post
Share on other sites

Herbert is correct. Sending it with PHP is much more secure, can be set up to stop most spam and is usually much more customizable. iGuest, I cannot understand your post very well though. You want to send an email (via actual email accounts such as yahoo est.) or send it to your database after 25 seconds? I know that it is possible to send emails from PHP and I think you can receive it as long as the receiving address has pop3 or imap access and/or you it is on the server that the email is sent to (but I have no clue how that works). Clarify your question and people will be able to help you out better.Habble, the form does have multiple pages, they just aren't listed. You also need "bu.cgi" on your server for the form posted above.Thanks,Sparkx

Share this post


Link to post
Share on other sites
send smsCode To Send An Email From A Form

can somebody to help me on finding how to send a email directly using jsf or javascript without loading outlook express

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.