1
General Help & How-To / Warning: mail() has been disabled for security reasons
« on: May 28, 2010, 03:52:57 pm »
well you could use the smtp setup to mail instead of php's mail() function.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Dean,
I've found the bug in ListMailPro and fixed it.
Saved Sets now appear to work.
Thanks
Thank you for your offer to include your add-on in ListMail but I must respectfully decline. I can appreciate your efforts and willingness to share. If you'd like some exposure for your work feel free to post it to the Customizations forum.
Regards
I plan to add the ability to add and remove strings and set classifications right in LMP.
Code -- Matching -- Type -- Description
5.0.0 -- 5.0.0 -- hard -- Address does not exist
5.1.0 -- 5.1.0 -- hard -- Other address status
5.1.1 -- 5.1.1 -- hard -- Bad destination mailbox address
5.1.2 -- 5.1.2 -- hard -- Bad destination system address
5.1.3 -- 5.1.3 -- hard -- Bad destination mailbox address syntax
5.1.4 -- 5.1.4 -- hard -- Destination mailbox address ambiguous
5.1.5 -- 5.1.5 -- hard -- Destination mailbox address valid
5.1.6 -- 5.1.6 -- hard -- Mailbox has moved
5.1.7 -- 5.1.7 -- hard -- Bad sender's mailbox address syntax
5.1.8 -- 5.1.8 -- hard -- Bad sender's system address
5.2.0 -- 5.2.0 -- soft -- Other or undefined mailbox status
5.2.1 -- 5.2.1 -- soft -- Mailbox disabled, not accepting messages
5.2.2 -- 5.2.2 -- soft -- Mailbox full
5.2.3 -- 5.2.3 -- hard -- Message length exceeds administrative limit.
5.2.4 -- 5.2.4 -- hard -- Mailing list expansion problem
5.3.0 -- 5.3.0 -- hard -- Other or undefined mail system status
5.3.1 -- 5.3.1 -- soft -- Mail system full
5.3.2 -- 5.3.2 -- hard -- System not accepting network messages
5.3.3 -- 5.3.3 -- hard -- System not capable of selected features
5.3.4 -- 5.3.4 -- hard -- Message too big for system
5.4.0 -- 5.4.0 -- hard -- Other or undefined network or routing status
5.4.1 -- 5.4.1 -- hard -- No answer from host
5.4.2 -- 5.4.2 -- hard -- Bad connection
5.4.3 -- 5.4.3 -- hard -- Routing server failure
5.4.4 -- 5.4.4 -- hard -- Unable to route
5.4.5 -- 5.4.5 -- soft -- Network congestion
5.4.6 -- 5.4.6 -- hard -- Routing loop detected
5.4.7 -- 5.4.7 -- hard -- Delivery time expired
5.5.0 -- 5.5.0 -- hard -- Other or undefined protocol status
5.5.1 -- 5.5.1 -- hard -- Invalid command
5.5.2 -- 5.5.2 -- hard -- Syntax error
5.5.3 -- 5.5.3 -- soft -- Too many recipients
5.5.4 -- 5.5.4 -- hard -- Invalid command arguments
5.5.5 -- 5.5.5 -- hard -- Wrong protocol version
5.6.0 -- 5.6.0 -- hard -- Other or undefined media error
5.6.1 -- 5.6.1 -- hard -- Media not supported
5.6.2 -- 5.6.2 -- hard -- Conversion required and prohibited
5.6.3 -- 5.6.3 -- hard -- Conversion required but not supported
5.6.4 -- 5.6.4 -- hard -- Conversion with loss performed
5.6.5 -- 5.6.5 -- hard -- Conversion failed
5.7.0 -- 5.7.0 -- hard -- Other or undefined security status
5.7.1 -- 5.7.1 -- hard -- Delivery not authorized, message refused
5.7.2 -- 5.7.2 -- hard -- Mailing list expansion prohibited
5.7.3 -- 5.7.3 -- hard -- Security conversion required but not possible
5.7.4 -- 5.7.4 -- hard -- Security features not supported
5.7.5 -- 5.7.5 -- hard -- Cryptographic failure
5.7.6 -- 5.7.6 -- hard -- Cryptographic algorithm not supported
5.7.7 -- 5.7.7 -- hard -- Message integrity failure
$query212 = "select email,fname,lname from lm_users where (id = '$id')";
$db2382 = "MYDATABASE";
$result11123 = mysql_db_query($db2382, $query212);
if($result11123)
{
while ($r = mysql_fetch_array($result11123))
{
$theirfname = $r["fname"];
$theirlname = $r["lname"];
$theiremail = $r["email"];
}
}
mysql_query("insert into lm_trackbounces (id,firstname,lastname,emailaddress,msg,date) values('$id','$theirfname','$theirlname','$theiremail','".addslashes($msg)."','".date("F j, Y, g:i a")."');");
The bounce message is passed to the CGI which forwards to bounce.php and then to the bounce function in admin.php
Due to the wide variety of servers there is no way (that I know of) to determine whether a bounce is hard or soft. The only thing (I think) we can do, besides ListMail actually -becoming- the SMTP server (would never be as efficient with larger lists or might only be for dedicated server), is set up a list of strings and have the classify the message hard or soft. Such a feature is planned. Due to time constraints I unfortunately cannot take on any additional custom jobs at this time.
Regards
CB,
Search admin.php for "function bounce". This function is called every time a user bounces. You might want to add your code after this line:Code: [Select]while(list($id,$list,$email,$bounces)=mysql_fetch_row($urows)){
Your code, if you add a table to your ListMail DB, might look like this:Code: [Select]mysql_query("insert into mybounces values('$id','".addslashes($msg)."','".date("Y-m-d H:i:s)."');");
Note that the same email address can have more than one user ID if it exists on multiple lists. Note also that we are using the id field and not uid
Regards
mysql_query("insert into bouncerow values('$id','".addslashes($msg)."','".date("F j, Y, g:i a")."');");