change the Subject line in an e-mail

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default change the Subject line in an e-mail

    I'm using a form to collect data from users (this is on my company's intranet).
    They click on submit to e-mail the data back to me. No problem so far.
    Here's my question: The subject line in the e-mail defaults to "Form posted
    from Microsoft Internet Explorer". Is there a way to control what is in the
    subject line?

    I'm new to all this and appreciate any help you can offer!

    Thanks
    :confused;

    heuning Guest

  2. Similar Questions and Discussions

    1. Help! My line endings change when I create a PDF . . . why?
      When I create a document in InDesign CS and I create a PDF once in a while the line breaks in the copy changes. Does anyone know why and what I can...
    2. How to Change the Email Subject and Default Message?
      Hi and thanks in advance for the help. I've created a PDF form that uses an email submit button but would like to use the contents of one of the...
    3. Generate subject line for e-mail
      My online form collects about 20 data elements from users and e-mails the data to 3 e-mail addresses. The subject line of the e-mail that the form...
    4. Defined text field in form -> subject field in e-mail
      Hi, I have a form on my web site which users send to me by mailto-function. I would like the text they write in a particular text field to...
    5. mail(): ' Warning: Failed to Connect in ... on line ...'
      Hi everybody, I'm a newbie using PHP4 and Apache 1.3 on Win98. When I launch a script just having this instruction: mail...
  3. #2

    Default Re: change the Subject line in an e-mail

    Insert this into the HTML of your form...

    <input type=hidden name="subject" value="type whatever your subject is">
    Whittemore Guest

  4. #3

    Default Re: change the Subject line in an e-mail

    Thanks for the help, but this does not really do what I need. Your line
    inserts another line in the BODY of the e-mail.

    What I would like to do, is change the SUBJECT line of the e-mail. Any
    suggestions how to do this?

    heuning Guest

  5. #4

    Default Re: change the Subject line in an e-mail

    That's interesting. Are you using FormMail?

    Whittemore Guest

  6. #5

    Default Re: change the Subject line in an e-mail

    What is FormMail?? I am using DW8 and I am tweaking the HTML and Java...
    heuning Guest

  7. #6

    Default Re: change the Subject line in an e-mail

    These guys can explain better than I. [url]http://www.scriptarchive.com/formmail.html[/url]

    Did you put this line between your <form> and </form> brackets?
    <input type=hidden name="subject" value="type whatever your subject is">

    If so, This might be a Javascript issue.



    Whittemore Guest

  8. #7

    Default Re: change the Subject line in an e-mail

    Hi Whittemore

    Thanks for this link!! I have looked into this and see that it will require
    from installing some script on the server (if I understand it correctly!) This
    is going to be a problem for me, as I'm doing our departmental website on the
    company's intranet, and I don't have the permissions to install things on the
    server...

    Is there any other way that I can manipulate the generation of an e-mail
    message?

    Thanks for your help.

    heuning Guest

  9. #8

    Default Re: change the Subject line in an e-mail

    Hi again

    I found the answer. It's easier than I thought! If you simply change the
    mailto bit to:

    action="mailto: [email]adres@domain.com[/email]?subject=XXX"

    it changes the subject of the e-mail to XXX. I found this at:
    [url]http://www.htmlbasix.com/forms.shtml[/url]


    heuning Guest

  10. #9

    Default Re: change the Subject line in an e-mail

    Your welcome.
    Can I see your html?
    Whittemore Guest

  11. #10

    Default Re: change the Subject line in an e-mail

    I'm glad you figured it out!!

    Whittemore Guest

  12. #11

    Default Re: change the Subject line in an e-mail

    Here's the "opening line" of the <form>:

    <form name="rmsurvey" method="post" action="mailto:
    [email]adres@domain.com[/email]?subject=XXX" ENCTYPE="text/plain">
    ...and then follows the whole lot of the form, tables, input fields, etc...

    So, it's really simple to hard code the XXX, but that's not good enough for
    what I want to do. Now I need to figure out how to manipulate the XXX
    dynamically.

    I want XXX to = input field YYY (which is one of the fields the user has to
    complete)

    If you have any ideas, please let me know!

    Thanks

    heuning Guest

  13. #12

    Default Re: change the Subject line in an e-mail

    Well, the users have to input about 20 different fields. One of these will be
    very useful to have as the subject line of the e-mail, as the recipients of the
    e-mails need to identify and prioritise the e-mails on receipt. So, what I
    want to do, is have the subject line display: "Request re: YYY". YYY = one of
    those 20 input fields.

    Where do I start? (I'm new to this, and have never written HTML before ...
    it's quite exciting to experiment!)

    heuning Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139