+ Reply to Thread
Results 1 to 6 of 6

Thread: HTML email reply

  1. #1
    Join Date
    May 2004
    Posts
    19

    Default HTML email reply

    Hi Russell,

    Thanks again for the script, I have had it working extremely well with replies in text.

    My efforts to get a reply in HTML have been in vain, I have been trying for hours, checked and rechecked your How To with no success.

    This is the reply I receive in text with the input data.


    Content-Type: text/plain; charset=ISO-8859-1

    Here is my script:

    <p> <form method="post" action="http://www.sequoiasprings.com/formmail.php" name="formmail">
    <input type="hidden" name="env_report" value="REMOTE_HOST,REMOTE_ADDR,HTTP_USER_AGENT,AUTH_TYPE,REMOTE_USER">
    <input type="hidden" name="recipients" value="auscan#island.net">
    <input type="hidden" name="required" value="email: auscan#island.net">
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm">
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,NoPlain">
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,KeepLines">
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,TemplateMissing=N/A">
    <input type="hidden" name="subject" value="Catering Request Information">

    and the address of the email reply....

    http://www.sequoiaspringsDOTcom/email_reply.htm


    the formmail php and reply htm are in the same folder (fmtemplates)

    Can you please assist me.

    Thanks in advance
    aussieincanada

  2. #2
    Join Date
    May 2004
    Posts
    19

    Default Re: HTML email reply

    that should read email_reply.htm

    aussieincanada

  3. #3
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: HTML email reply

    Your template "email_reply.htm" looks fine. So, it must be something else that's causing the problem.

    Would you like to email me your form and your configured formmail.php. Send to custsupp AT tectite DOT com.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  4. #4
    Join Date
    Dec 2003
    Posts
    3,901

    Default Re: HTML email reply

    Thanks for sending your files.

    There are two problems in your configured FormMail:
    1. Your DEF_ALERT value is not a valid email address - this means you won't receive error messages to help you resolve problems. Put your email address in there to help you debug your forms and FormMail.
    2. You provided a URL in your $TEMPLATEDIR setting instead of a directory. You have:
      PHP Code:
      $TEMPLATEDIR "http://www.sequoiasprings.com/fmtemplates/email_reply.htm"
      and what you want is something like this:
      PHP Code:
      $TEMPLATEDIR "path-to-document-root/fmtemplates"
      You can use the following if you're not sure of the correct path:
      PHP Code:
      $TEMPLATEDIR "$REAL_DOCUMENT_ROOT/fmtemplates"
      Note that it should not have the name of the template itself - just the path to the directory. The template name is specified in the form.
    In your form you have one problem. You have "mail_options" specified multiple times.

    Code:
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm">
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,NoPlain">
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,KeepLines">
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,TemplateMissing=N/A">
    It looks like what you want is this:

    Code:
    <input type="hidden" name="mail_options" value="HTMLTemplate=email_reply.htm,NoPlain,KeepLines,TemplateMissing=N/A">
    I've tried the above changes locally, and if you do them, you'll get a nicely formatted HTML email sent to you.

    Please let me know how you go with the above.
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

  5. #5
    Join Date
    May 2004
    Posts
    19

    Smile Re: HTML email reply

    Russell you have here a very professional script and your support has been excellent.
    I have it up and running and looking good.
    Sincere thanks
    aussieincanada

  6. #6
    Join Date
    Dec 2003
    Posts
    3,901

    Smile Re: HTML email reply

    That's great news.

    Thanks for letting us know.

    PS Please remember to put a link to our site to help us continue to provide free software and free support. Thanks!
    Russell Robinson - Author of Tectite FormMail and FormMailDecoder
    http://www.tectite.com/

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Sending form results in an HTML email
    By russellr in forum HOWTO Guides and Tips
    Replies: 26
    Last Post: 12-Jan-2006, 09:31 PM
  2. Removing empty variables from eMail reply
    By Prospero in forum FormMail Subscription Support
    Replies: 4
    Last Post: 25-Jul-2004, 08:22 AM
  3. HTML Email not working
    By Rich in forum FormMail Subscription Support
    Replies: 9
    Last Post: 23-Jul-2004, 10:11 PM
  4. Can I Include an Image in an HTML Email??
    By minskin in forum FormMail Subscription Support
    Replies: 4
    Last Post: 19-Jun-2004, 03:43 PM
  5. send an email in HTML
    By michecosta in forum FormMail Subscription Support
    Replies: 3
    Last Post: 25-May-2004, 09:18 PM

Bookmarks

Posting Permissions

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