Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: Mail form code

  1. #1
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56

    Question Mail form code

    I am making a mail form from scratch in html using guidance from thalasson dot com.
    I have succeeded with setting
    tag <email> and </email> around 'What is your email address?'
    and
    tag <name> and </name> around 'Your name'

    but am having problems with the text box for the message.

    I believe I need tags <comment> and </comment> somewhere, but wherever I put them, it fails. Thus...

    If I put them round 'Please type your message here', that line becomes hidden. If I put them round the textbox code, the box becomes hidden. If I put them inside the code for the textbox, they appear inside the box. Whatever, I get an error message saying 'You did not enter a comment'.

    Arrgh.

    Has anyone done this successfully? Or can anyone point me to instant/complete code I can copy?

    Many thanks.

  2. #2
    Head Honcho Administrator Reverend's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    14,045
    Try this:

    Code:
    <FORM METHOD="POST" ACTION="mailto:your email address here">
    Name<BR>
    <INPUT TYPE="text" NAME="name" SIZE="30"><BR>
    E-mail address<BR>
    <INPUT TYPE="text" NAME="subject" SIZE="30"><BR>
    Your message<BR>
    <TEXTAREA NAME="text" COLS="30" ROWS="5"></TEXTAREA><BR>
    <INPUT TYPE="submit">
    <INPUT TYPE="reset">
    </FORM>
    View the attachment below to see what it will look like on a page.

    Note: Because of the character encoding we use at TZ you might have to copy/paste that code into a text editor first (e.g notepad) and then copy/paste it from there into your html page.
    Last edited by Reverend; May 12th, 2005 at 21:06 PM.

    =========== Please Read The Forum Rules ===========

  3. #3
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56

    Smile Thank you

    Wow. I looked at that and though it must be too simple. Thanks!

    Another quick Q: If the email add includes @, spam harversters will find it. Is it true that one can type it thus (in the code):

    name (at) domain

    and that then the magic of html etc. will make it work as though it used the @ ?

    Thanks again

  4. #4
    Head Honcho Administrator Reverend's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    14,045
    you can convert your mail address into hex code that a harvester won't recognize.

    Some online encoders here:

    http://thespameater.com/emailencoder.html?r=0

    http://www.u.arizona.edu/~trw/spam/spam2.htm

    =========== Please Read The Forum Rules ===========

  5. #5
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56

    Thumbs up Wonders upon wonders

    You are wonderful. Thank you so much.

  6. #6
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56

    it won't send (apparently)

    Me again.

    Could you check this for me, please?
    I can't get it to actually send to me ! :-(

    <FORM METHOD="POST" ACTION="mailto:me@me.com">
    Name<BR>
    <INPUT TYPE="text" NAME="Your name" SIZE="30"><BR>
    Your email address<BR>
    <INPUT TYPE="text" NAME="subject" SIZE="30"><BR>
    Your message<BR>
    <TEXTAREA NAME="text" COLS="30" ROWS="5"></TEXTAREA><BR>
    <INPUT TYPE="submit" onClick="location.href='thanks.html'"
    value="Send">
    <INPUT TYPE="reset" value="Reset form">
    </FORM>

    Many thanks.

  7. #7
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56

    Ps

    It *does* load the 'thanks' page on click, though.

  8. #8
    Security Intelligence TZ Veteran cash_site's Avatar
    Join Date
    Jul 2002
    Location
    Software Paradise
    Posts
    3,735
    LOL, your email address isnt me@me.com... so you dont get the email Also, change the name attribute for the name textbox to name="name"

    --- 0wN3D by 3gG ---

  9. #9
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56
    >LOL, your email address isnt [email]me@me.com<

    ino heheh.



    OK - working... partly. but now I find that the messages are sitting in my OE outbox. (Never thought to look there, last night!) Should this happen? So, if I go there and send them, fine. But what about random web visitors without a mail client? Will their messages get sent?

    The form is at http://www.andrewradley.com/contact6.html if you want to take a look.

    (I make websites for love, not money, for struggling young musicians, BTW. They love them, but maybe I am getting too ambitious - heh. I was up till the wee small hours last night <yawn> googling for solutions to mailto: problems and it looks like a minefield!)

    Thanks

  10. #10
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56

    Unhappy still not working

    I asked a friend to send from the form and it did not work. She said this:

    >Some reply mails seem to default to my hotmail (where I would like them to
    go) and some mails seem to default to my outlook (which I never use but it
    comes with the machine and I don't know how to disconnect it. This reply
    said "sent" but then the password box came up which I suspected meant that
    it was trying to send it through outlook. And I don't know what password it
    is talking about - I don't use it and therefore don't have one. You'd do
    better to ask someone else, unless you can advise me how to rechannel this
    default to go to hotmail.<

    Aargh.

  11. #11
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56
    I think she means Outlook express, not Outlook.

  12. #12
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56

    More - sorry

    She meant Microsoft password - doh. She's not IT-literate.

    However, the principle behind my question remains...

    Can I be sure that sending the form from *any* pc (internet cafe... whatever) works?

    Thanks.

  13. #13
    Head Honcho Administrator Reverend's Avatar
    Join Date
    Apr 2002
    Location
    England
    Posts
    14,045
    Quote Originally Posted by maglinders
    Can I be sure that sending the form from *any* pc (internet cafe... whatever) works?

    Thanks.
    Yes. It will be sent to the address you specified in this part of the code:

    Code:
    <FORM METHOD="POST" ACTION="mailto:me@me.com">

    =========== Please Read The Forum Rules ===========

  14. #14
    Member maglinders's Avatar
    Join Date
    Apr 2005
    Posts
    56

    Talking Thank you...

    ... for your help and reassurance.

  15. #15
    Security Intelligence TZ Veteran cash_site's Avatar
    Join Date
    Jul 2002
    Location
    Software Paradise
    Posts
    3,735
    Will it though Rev?? I thought the mailto: code only opens the default mail client installed on the PC? Wouldnt she need some sort of mail relay or use Perl/PHP to sendMail() ??

    I'm not sure it would work at Internet Cafe/kiosk ?!

    --- 0wN3D by 3gG ---

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •