ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have written a script, in php and mysql, to record votes.
What the script does is to display a form, with about 20 fields, to vote for your choice in about 20 categories.
I have made only 3 fields compulsary; Name, Email and Country.
In order to avoid spam and duplication I have used a double opt-in system.
i.e. when the 'Vote Now' button is clicked the script sends an email to the voter and includes a link back to the script to register the vote. It also checks that the email has not previously voted.
I have a voter who says that she does not receive a verification email to return the vote. She also says that she has 3 friends who do not receive the verification email.
In order to check possible problems, I have sent an email direct from my computer which she received. I have also sent an email directly from the server command line which she received.
I thought a possibility was because of the long link so I sent an email direcly from the server and included the verification link. She received that also.
Her email address is: @hotmail.co.uk and a friend is: @hotmail.com.
I checked for hotmail email addresses in the database and other people have registered their votes with a hotmail email address. Therefore it is not hotmail that is blocking mail from a form.
I am now stumped as to why she cannot receive.
Can anybody think of any possible reason that I can check ???
A common problem is insufficient headers (no From: field), or discrepancy between the From: header and the envelope sender.
Send a message to yourself using the server commandline, then vote using the same e-mail address. (You can send them to me, if you want me to take a look.) The two messages should have identical header fields. Most e-mail clients don't show the header details, so be sure to switch on the detailed header view. Better yet, save the e-mails as text files, obscure any identifying fields, and post them here, and we can take a look.
The output is line-wrapped, so it'd be better if you could retry using the e-mail address I provided for you privately for this. It is OK if there are a couple of extra copies.
I suspect the problem is in the From: headers. Consider this in the e-mail sent by the form:
Code:
From: noreply@bcmawards.co.uk
Received: from redvelvet.gvl99.co.uk (localhost [127.0.0.1]) by redvelvet.gvl99.co.uk (8.14.4/8.14.4) with ESMTP id q3FFPrtf011948 for <recipient>; Sun, 15 Apr 2012 16:25:54 +0100
Received: (from apache@localhost) by redvelvet.gvl99.co.uk (8.14.4/8.14.4/Submit) id q3FFPrRO011947; Sun, 15 Apr 2012 16:25:53 +0100
In the command-line message, the From: header is
Code:
From: ukzone@redvelvet.gvl99.co.uk
If the From: header does not match the host (early) in the receive chain, most spam filters assume the message is spam. That is a common spoofing technique, after all. I suggest you check this by replacing the value your form supplies for the From: header to something@redvelvet.gvl99.co.uk .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.