ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
Some user fills out a form to register on a site. As soon as they click Submit, I use the php function "mail()" to send them a confirmation email.
The only thing is, the email always gets filtered as if it were bulk mail or spam, and I'm not sure why.
I'm not sure if it has something to do with how I'm using the function itself, or if it has something to do with the hosting company I'm using.
For example, I use yahoo mail - and when I do a registration test, it gets sent to my Bulk mail folder each time.
I think that has a lot more to do with whatever the mail recipient is using for a SPAM filter than with how you're sending the mail. About all you could do is to possibly try and change the subject so that SPAM filters wouldn't think it is a bulk mail... but then some of them may go off of who the mail is from and get filtered anyway.
Not sure there is anything you can really do about it. If the user knows it's not spam mail, they can usually adjust their settings to allow it through, but then that implies that you will be sending more than 1 e-mail since they wouldn't know to setup that in advance.
I don't know what else to tell you. So far as I know, there is nothing with SMTP where you can say, "Don't send this to a bulk mail folder." If there were, the spammers would have a field day, and anti-spam software would be useless.
Not everyone even necessarily even HAS a "bulk mail" folder. All that stuff is handled either by the users mail client, or by their mail server.
I'm about 99% sure that your problem is in how your spam filters are working for the recipient mail server. Some filter based on content of the subject/body, some based on the sender's e-mail, some based on the recipient e-mail if it's not what it should be, some will note that you get a lot of e-mail with the same subject, and assume it's junk mail...
Most spam filters (SpamAssassin for example) will work on the number of links and key phrases in the e-mail. If you're using marketing phrases, or putting a lot of links in, they'll class it higher up the "spam scale". I've noticed SpamAssassin has rules to see whether a mail agent was supplied - if not then it's probably mass mailed.
SpamAssassin is particularly good I find as you can make it add a report in the headers of the received e-mail to tell you how it worked out the points and for which "offences".