Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Template help

  1. #1
    Join Date
    Jan 2012
    Posts
    5

    Default Template help

    Can't figure this one out...

    I have formmail running perfectly on a client site. Forms work and send plain text mails to assigned addresses. However, I can't get it to work with html templates.
    I have the following lines in the form html
    <input type="hidden" name="mail_options"
    value="HTMLTemplate=enquiry.html" />

    I don't get any error message, the page redirects to good_url properly, but I don't get the email.

    Works fine with plain text, but not with html.

    Any ideas? It works perfectly on a different site...

  2. #2
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Template help

    u don't get *any* email?

    sounds like a spam filter is blocking the email

  3. #3
    Join Date
    Jan 2012
    Posts
    5

    Default Re: Template help

    Quote Originally Posted by crabtree View Post
    u don't get *any* email?

    sounds like a spam filter is blocking the email
    It's set up with a test form sending mail just to me. It's a work account and there is no external spam filter. It's all in my mail client and nothing reaches me. The hosting company assures me the html mail does not breach their outgoing spam filtering.

    I initially thought it might be down to the host treating html mail as spam, but I have another site hosted with the same company and html send works fine from that.

    At the point of giving up to be honest. All the file and folder permissions are OK and the fact that it can send plain text means it's working.

  4. #4
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Template help

    if formmail sends u to the good_url page, then it's defintely sent the email (and the server has accepted it without an error)

    i'd setup a gmail account and send a copy to there

    otherwise, maybe buy some support from tectite, if its important to get it working

  5. #5
    Join Date
    Apr 2011
    Location
    Melbourne
    Posts
    12

    Default Re: Template help

    Well would you believe I have the exact same problem.

    Have been using this for years:
    <input type="hidden" name="mail_options" value="PlainTemplate=CustomerSupport.txt,AlwaysList" /> Always receive the email without any issues.

    Yesterday I decided to change one of the forms to HTML.
    Create a simple HTML template and placed in to the template directory.
    Used the following code in the form:
    <input type="hidden" name="mail_options" value="HTMLTemplate=CustomerSupport.html" />

    Form submits without errors, redirects to the correct good url etc...
    Problem: Never receive the email. Tried a private email, gmail and yahoo... Never got the email using the HTML template.

    If I switch to plaintemplate, form works.

    Does anyone know if the headers need to be added to HTML template to work? Or does formail automatically do this for HTML mail.

    HTML template Used:

    <html> <body> <h1>Customer Support</h1> <p>Name: $realname</p> <p>Email Address: $email</p> <p>Phone: $Phone</p> <p>Country: $Country</p> </body> </html>

  6. #6
    Join Date
    Jul 2011
    Posts
    45

    Default Re: Template help

    Have you checked your spam folder(s)?

    I've found that, particularly with btinternet, and probably with other email services as well, unless set up properly, a text email will get through and an html version is trapped by their spam filter.

  7. #7
    Join Date
    Apr 2011
    Location
    Melbourne
    Posts
    12

    Default Re: Template help

    Yes - checked all spam folders with gmail and yahoo. Never received.
    Our own internal testing email has no spam filters enabled.
    For some reason HTML is not sending, plain txt is working. Dont know where the html email goes

    Quote Originally Posted by Ben View Post
    Have you checked your spam folder(s)?

    I've found that, particularly with btinternet, and probably with other email services as well, unless set up properly, a text email will get through and an html version is trapped by their spam filter.

  8. #8
    Join Date
    Mar 2004
    Posts
    2,224

    Default Re: Template help

    try playing with the HEAD_CRLF setting in formmail

    perhaps ur sending email server doesn't work properly (according to the standards) and doesn't know wot to do with correctly formatted email

  9. #9
    Join Date
    Mar 2012
    Posts
    21

    Default Re: Template help

    Trying to make my first template.
    My html to php formmail worked fine.
    I have or I think I have followed the instructions to set up a plaintext template but it doesn't seem to be working as I am still getting the email set out just as before I added the template.

    What am I doing wrong, I added <input type="hidden" name="mail_options"
    value="PlainTemplate=plain.txt,AlwaysList,TemplateMissing=" />
    to the top of my form just under the <form action="formmail2.php" method="post" ...............

    I added /fmtemplates to the php file
    I have the php and .temp in separate folders.

    Maggie

  10. #10
    Join Date
    Mar 2012
    Posts
    21

    Default Re: Template help

    Got the plain text working at last

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Email Template + Good URL Template?
    By nolene in forum Features Questions
    Replies: 1
    Last Post: 30-Nov-2008, 06:38 AM

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
  •