u don't get *any* email?
sounds like a spam filter is blocking the email
Welcome to the Tectite Forums! You can download and get support for our free PHP FormMail (form processor) and other free software.
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...
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.![]()
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
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>
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.
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
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
Got the plain text working at last
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks