Nov 20, 2009
Pages: 1, 2

Code To Send An Email From A Form

free web hosting
Open Discussion & Free Web Hosting > Computers & Tech > Designing > Web Design and HTML

Code To Send An Email From A Form

cool
HTML
<form action="http://www.bool.co.il/cgi-bin/bu.cgi?page=send2friend&id=8006" 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

 

 

 


Comment/Reply (w/o sign-up)

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

Comment/Reply (w/o sign-up)

marijnnn
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 smile.gif))))
you can put it in a for loop. so you can choose to send a thousand times the same mail smile.gif
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 that

l

 

 

 


Comment/Reply (w/o sign-up)

Hercco
QUOTE (marijnnn @ Oct 19 2004, 03:39 PM)
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

*


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 astahost, so his might be on a server that doesn't allow CGI or PHP (or ASP or whatever).

Comment/Reply (w/o sign-up)

lhunath
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? tongue.gif

Comment/Reply (w/o sign-up)

marijnnn
i like the option to send 500 mails, using a for loop tongue.gif

Comment/Reply (w/o sign-up)

k22
On Lycos i remember you can send max 50 mails/day
on astahost is there a max?

Comment/Reply (w/o sign-up)

iGuest-Anu
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,

Comment/Reply (w/o sign-up)

Habble
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 know

Cheers

Comment/Reply (w/o sign-up)

Herbert
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 smile.gif

Comment/Reply (w/o sign-up)


Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Pages: 1, 2
Similar Topics

Keywords : code, send, email, form

  1. The Step Up. A Guide For Myspace Design
    Actual code is included here :) (2)
  2. Code Improvement And Optimization
    A beta service...it's almost free (2)
    I am offering a code improvement, optimization, validation and accessibilities assessment exclusive
    to Astahost members. This is currently not offered at the Trap17 side of the corporation because
    credits there are no use and I now rarely visit at Trap17 anymore. /wink.gif"
    style="vertical-align:middle" emoid=";)" border="0" alt="wink.gif" /> Now there are some certain
    things that are not explained on the page so I will explain them here. 1. This code improvement
    service will only be offered to sites that DOES NOT contain racist, hatred, discriminative, criminal
    (wa....
  3. Free Code Snippets And Css Layout
    (14)
    In this site you can find some excellent CSS layouts and code snipets, its very simple but more
    important its very EFFECTIVE. So dont waiste time and visit : Code-Sucks Best regards,....
  4. Home Videos
    html code for home video (4)
    I was wondering if anyone knows how to turn a home video that is saved on your computer to that of a
    html code so I can put it onto my myspace page... Please if anyone at all knows how to do this
    please please help me!!!!....
  5. Blogger Code Problems
    (1)
    If I posted in the wrong forum, please forgive me /smile.gif" style="vertical-align:middle"
    emoid=":)" border="0" alt="smile.gif" /> I had troubles determinating where to put this. Anyhow, I
    have recently started a blog at blogger.com (actually it's blogspot.com). One of the main things
    I didn't like was the archive page. It showed whole posts, and I wanted it to show titles as
    links only. So I found a hack, and did everything as it said, but now I have problems. Blogger has
    codes to determine which page will use that part of the code. In order to define the a....
  6. To Hide Your Source Code
    all you need to know to hide your source code.. (18)
    protect your source code! follow these easy 5 steps: Copied from
    http://www.cgiscript.net/cgi-script/csNews...wone&id=19&op=t QUOTE Step 1: let's assume
    your main page is named index.htm. Rename index.htm to encrypt.htm. Step 2: open encrypt.htm
    source code and add the code below to the file, right after the opening BODY tag. CODE
    m='%3Cscript%20language%3DJavaScript%3E%3C%21--%0D%0A%0D%0Avar%20message%3D%22Function%20Disable
    d%21%22%3B%0D%0A%0D%0Afunction%20clickIE%28%29%20%20%7Bif%20%28document.all%29%20%7Balert%28message%
    29%3Breturn%20false%3....
  7. I Need Help With A Code: Myspace Profile Css
    (5)
    Ok, I made this background for myspace, but it wants to tile itself and all that jazz.. the image is
    800x600 cuz i know most users have that setting. anyhoo im sure there is a html tag out there
    somewhere to keep an image fixed and resized depending on resolution.. but then again i could be
    wrong haha.. come to think of it i probably am wrong but i thought i would ask you all if you knew
    of a code that would do that... here is my profile page for reference: Myspace Page anyhelp is
    greatly appreciated.. i may just wind up fading the edges of the pic into black and cen....
  8. Free Shoutbox? HTML, Flash or PHP Code
    (25)
    does anyone know where i can find a free shoubox thats customisable? it can be in html, php or flash
    format. thanks in advance paul....
  9. Jscript/html/css Code Help
    irritating gaps in spliced image (8)
    Here is a link to one of the pages i am designing for my parents business website. all the other
    pages - except the main page - are just imagemaps. this page and the main are spliced images - the
    main contains a iframe blog - but in this one in xp/ ie and firefox/ all the images are pulled apart
    the idea for the page is that the user mouse-over's the cartons and the blank box of grass in
    the bottom has the details of the product printed in it. i am totally able to git rid of the
    splicing if nessisary and use div's but i cant figure how. could someone help me s....
  10. Simple Java Script Code For Print Pages
    (0)
    A simple java script code for printing your website pages just copy and paste below code on your
    pages you can use image or text instead of button. Print screen button function
    varitext(text){ text=document print(text) } // End --> onclick="varitext()">
    be successful ! Soleimanian....
  11. Easy Email Script
    (1)
    I found this off some site you can edited it to if you don't understand something on this just
    make post .. this is a script I customed for one of my sites .. I decided to show you it CODE
    This one is for an html file. Your NickName : Your Email: File
    Name: File Link: Describe What The Program is For:
    now this next code should be name email.php CODE echo "Hello, $name."; echo " "; echo
    "You have successfully Submited The Request We Will Get Back To You Shortly"; echo ....
  12. Email Address Protector
    Protect your email address fron harvesto (4)
    As I was working on a sub domain for my new site I decided to protect the email addresses on the
    site with a simple javascript to prevent harveters from grabbing them and flooding the mail box with
    spam. Hadn't seen the script in the forum yet so I thought I'd share it. Change the
    information in blue to yours and place this code where you want the link to show. Left as is no
    line decloration will appear under the link. If you want the link underlined then change none
    to: underline username = " usernameHere "; siteURL = " siteURLHere "; ....
  13. Anonymous Email
    Send an anonymous email (11)
    buddies try this. anonymous emailer !!! http://lag.name/anon.php this script will allow u to
    send anonymous email to sum1. /tongue.gif" style="vertical-align:middle" emoid=":P" border="0"
    alt="tongue.gif" /> try it. u can mail from admin@astahost.com to sum1 /tongue.gif"
    style="vertical-align:middle" emoid=":P" border="0" alt="tongue.gif" />....
  14. Let visitors email you!
    Simply the best emailer script!! (7)
    Hi!!! I just wanted to show you the very nice emailer script I've created for my site. The
    script lets your visitors email you just by filling out a form that you can place anywhere on your
    site. All you have to do is to copy and paste the script below. The only thing you'll have to
    change about it is the email adress where you want to recieve your form mails. This script has been
    working really well form me, and I hope it will for you as well. /smile.gif"
    style="vertical-align:middle" emoid=":)" border="0" alt="smile.gif" /> Good luck, and I hope you can
    make i....
  15. Free Hosting , uploading should be through email
    Free Hosting supports email upload (6)
    I need an free hosting which supports uploading through email ........... dont want to use
    browser or FTP .....
  16. Basic XML code
    (3)
    you will need to start with..... ....
  17. Basic css code
    (3)
    to create a website in css...you will need to start with the basic code... /* CSS Document */....
  18. Hex Color codes
    a list of colors in code (6)
    I have here compiled a list of colors in Hexidecimal code. I have listed them in alphabetical order.
    I put them in three different files so ill put them in three posts. A-D, F-M, N-Y, dont worry i know
    my alphabet, their are just no colors starting with E etc. A-D Aliceblue-F0F8FF
    Antiquewhite-FAEBD7 Aqua-00FFFF Aquamarine-7FFFD4 Azure-F0FFFF Beige-F5F5DC Bisque-FFE4C4
    Black-000000 Blanchedalmond-FFEBCD Blue-0000FF Blueviolet-8A2BE2 Brown-A52A2A Burlywood-DEB887
    Cadetblue-5F9EA0 Chartreuse-7FFF00 Chocolate-D2691E Coral-FF7F50 Cornflowerblue-6495ED Cornsilk-F....

    1. Looking for code, send, email, form

See Also,

*SIMILAR VIDEOS*
Searching Video's for code, send, email, form
advertisement



Code To Send An Email From A Form

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com