I send out an HTML e-mail newsletter to members of a site. Some of the members don't have a valid e-mail address registered so I added a field in the db just to sort them out, it's a imple 1 0r 0 for valid or not.
The SQL in Adv mail looks like this: "SELECT rsCompany.coComp, rsCompany.coFname, rsCompany.coEname, rsCompany.coEmail, coPassword, coUserlevel FROM rsCompany WHERE rsCompany.coAktivated ='1' AND coNomail = '1'"
coNomail means: 1 = valid and 0 = not valid
Despite this, after my first email I got a whole bunch of returns stating that a lot of members had no valid email and therefor could not be reached. I checked the list against the database (MySql) and discovered that they were all from the "not valid" list, a "noMail= '0'" Basically, I was sending out to all the members despite of the SQL statement. Im afraid it also sent to those that were not activated but this I cannot check. Can I trust Advanced Mail? What went wrong? (the WHERE statements are not included in the SELECT list, but normally you don't need to do that, or do I?) //Bjorn |
|
|