Custom mail formatting using form

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Petre Huile

    Custom mail formatting using form

    I'm trying to mail form data by using the technique:

    form.action="ma ilto:address?Su bject=subject&b ody=bodyText"

    (the placeholders above are obviously not real :)).

    The thing is I want to customize the body text, but the submit action
    of the form always overwrites any body text I set in the line above
    with the default output of the form (a fieldname=value list).

    How can I implement mailing from the form so that I can do more
    flexible formatting of the body text?

    Thanks.
    Petre
  • steve stevo

    #2
    Re: Custom mail formatting using form

    Have you tried changing the method to post ?


    "Petre Huile" <phuile@yahoo.c a> wrote in message
    news:5ada05a7.0 310200435.bd991 c5@posting.goog le.com...[color=blue]
    > I'm trying to mail form data by using the technique:
    >
    > form.action="ma ilto:address?Su bject=subject&b ody=bodyText"
    >
    > (the placeholders above are obviously not real :)).
    >
    > The thing is I want to customize the body text, but the submit action
    > of the form always overwrites any body text I set in the line above
    > with the default output of the form (a fieldname=value list).
    >
    > How can I implement mailing from the form so that I can do more
    > flexible formatting of the body text?
    >
    > Thanks.
    > Petre[/color]


    Comment

    • Jerry Park

      #3
      Re: Custom mail formatting using form

      Petre Huile wrote:
      [color=blue]
      > I'm trying to mail form data by using the technique:
      >
      > form.action="ma ilto:address?Su bject=subject&b ody=bodyText"
      >
      > (the placeholders above are obviously not real :)).
      >
      > The thing is I want to customize the body text, but the submit action
      > of the form always overwrites any body text I set in the line above
      > with the default output of the form (a fieldname=value list).
      >
      > How can I implement mailing from the form so that I can do more
      > flexible formatting of the body text?
      >
      > Thanks.
      > Petre[/color]
      Since there is no consistent browser response to mailto: actions, you
      should generally avoid the construction.

      Comment

      • Hywel Jenkins

        #4
        Re: Custom mail formatting using form

        In article <5ada05a7.03102 00435.bd991c5@p osting.google.c om>,
        phuile@yahoo.ca says...[color=blue]
        > I'm trying to mail form data by using the technique:
        >
        > form.action="ma ilto:address?Su bject=subject&b ody=bodyText"
        >
        > (the placeholders above are obviously not real :)).
        >
        > The thing is I want to customize the body text, but the submit action
        > of the form always overwrites any body text I set in the line above
        > with the default output of the form (a fieldname=value list).
        >
        > How can I implement mailing from the form so that I can do more
        > flexible formatting of the body text?[/color]

        Use a server-side solution. What you're trying to do is unpredictable
        at best.

        --
        Hywel I do not eat quiche


        Comment

        Working...