+ Reply to Thread (include dating software, release, and patch number!)
Page 2 of 2 FirstFirst 1 2
Results 11 to 16 of 16

Thread: Mass Mailer / Letters Not Being Sent

  1. #11
    elusuario's Avatar
    Join Date
    Sep 2006
    Posts
    173

    Cool

    First of all I want to thank P_dog89gt for being the only one who tried to help and/or contribute to this thread, and for anybody else that will benefit from the solution I will write below, help other people, I can't believe the lack of responses or suggestions about my problem :S.

    Also for boonex, stop telling everybody that they don't know how to set a cron job, when the thing that is wrong is in the code, at least take the time to check the code instead of assuming that nobody knows how to set a cron job correctly.

    There were several problems with my mass mailer:
    1- subscribers emails were correctly added to queue, but message to them were never delivered, entries just kept in the queue forever.
    2- members emails were not being added to queue.
    3- messages to members emails were never delivered, entries just kept in the queue forever

    Ok, now how I solved all these:


    1)

    At ...periodic/notifies.php

    Below:
    Code:
    $total_per_query = $total_count / 4 + 1;
    Add:
    Code:
    $total_per_query = round( $total_per_query );

    2)

    At admin/notifies.php

    Check this line:
    Code:
    $res_eml = db_res("SELECT `ID` FROM `Profiles` WHERE `Status` <> 'Unconfirmed' AND `EmailNotify` = 'NotifyMe' $sex_filter_sql $age_filter_sql $country_filter_sql");
    And replace where it says:
    Code:
    NotifyMe
    with
    Notify_Me
    It should become:
    Code:
    $res_eml = db_res("SELECT `ID` FROM `Profiles` WHERE `Status` <> 'Unconfirmed' AND `EmailNotify` = 'Notify_Me' $sex_filter_sql $age_filter_sql $country_filter_sql");

    3)

    At periodic/notifies.php

    Check this line:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, Profiles.RealName as Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.HTML as Body FROM  NotifyQueue INNER JOIN NotifyMsgs ON (NotifyMsgs.ID =  NotifyQueue.Msg) INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'Profiles' AND Profiles.EmailNotify  = 'NotifyMe' AND Profiles.EmailFlag = 'HTML'",0);
    And replace where it says:
    Code:
    NotifyMe
    with
    Notify_Me
    It should become:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, Profiles.RealName as Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.HTML as Body FROM  NotifyQueue INNER JOIN NotifyMsgs ON (NotifyMsgs.ID =  NotifyQueue.Msg) INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'Profiles' AND Profiles.EmailNotify  = 'Notify_Me' AND Profiles.EmailFlag = 'HTML'",0);

    Check this line:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, Profiles.RealName as Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.Text as Body FROM  NotifyQueue INNER JOIN NotifyMsgs ON (NotifyMsgs.ID =  NotifyQueue.Msg) INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'Profiles' AND Profiles.EmailNotify  = 'NotifyMe' AND Profiles.EmailFlag <> 'HTML'",0);
    And replace where it says:
    Code:
    NotifyMe
    with
    Notify_Me
    It should become:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, Profiles.RealName as Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.Text as Body FROM  NotifyQueue INNER JOIN NotifyMsgs ON (NotifyMsgs.ID =  NotifyQueue.Msg) INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'Profiles' AND Profiles.EmailNotify  = 'Notify_Me' AND Profiles.EmailFlag <> 'HTML'",0);

    Check this line:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, NotifyQueue.MsgText as Body, NotifyQueue.MsgSubj as Subj, Profiles.RealName as Name, Profiles.Email FROM  NotifyQueue INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'ProfilesMsgText' AND Profiles.EmailNotify  = 'NotifyMe'",0);
    And replace where it says:
    Code:
    NotifyMe
    with
    Notify_Me
    It should become:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, NotifyQueue.MsgText as Body, NotifyQueue.MsgSubj as Subj, Profiles.RealName as Name, Profiles.Email FROM  NotifyQueue INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'ProfilesMsgText' AND Profiles.EmailNotify  = 'Notify_Me'",0);
    That fixed everything for me.
    Using modified Dolphin 5.6.0002 hosted at shared server

  2. #12
    Britster
    Guest

    Default

    Dude - you are a f******g star!! I just got informed that we have to change servers tonight, went to mass mail (for the first time), and got the '0 messages added' error. I nearly shat myself...

    Then I find this, make the changes above, and pow - messages in the queue!

    If you're ever in Essex then call me and I'll buy you a beer!

    Thank you!

    Paul

  3. #13
    elusuario's Avatar
    Join Date
    Sep 2006
    Posts
    173

    Cool

    Hi Britster, is good to know that my contribution is appreciated since it took me a lot of time and pain to make this work, well, have a nice day, take care.
    Using modified Dolphin 5.6.0002 hosted at shared server

  4. #14
    Administrator Smoge's Avatar
    Join Date
    Mar 2005
    Posts
    6,642
    Blog Entries
    5

    Default

    Hmmm... 5.6.5 has this problem - I would think it would have popped up before now - and the mis-spelling of NotifyMe would have generated a DB errors.

    Strange

    Smoge
    ModMySite Administrator

    Problems? Questions? Need modifications or other help with your site?

    Open A Ticket , Send Us An Email Or Give Us A Telephone Call +1 518-632-4152.

  5. #15

    Join Date
    Feb 2010
    Posts
    1

    Default

    Quote Originally Posted by elusuario View Post
    First of all I want to thank P_dog89gt for being the only one who tried to help and/or contribute to this thread, and for anybody else that will benefit from the solution I will write below, help other people, I can't believe the lack of responses or suggestions about my problem :S.

    Also for boonex, stop telling everybody that they don't know how to set a cron job, when the thing that is wrong is in the code, at least take the time to check the code instead of assuming that nobody knows how to set a cron job correctly.

    There were several problems with my mass mailer:
    1- subscribers emails were correctly added to queue, but message to them were never delivered, entries just kept in the queue forever.
    2- members emails were not being added to queue.
    3- messages to members emails were never delivered, entries just kept in the queue forever

    Ok, now how I solved all these:


    1)

    At ...periodic/notifies.php

    Below:
    Code:
    $total_per_query = $total_count / 4 + 1;
    Add:
    Code:
    $total_per_query = round( $total_per_query );

    2)

    At admin/notifies.php

    Check this line:
    Code:
    $res_eml = db_res("SELECT `ID` FROM `Profiles` WHERE `Status` <> 'Unconfirmed' AND `EmailNotify` = 'NotifyMe' $sex_filter_sql $age_filter_sql $country_filter_sql");
    And replace where it says:
    Code:
    NotifyMe
    with
    Notify_Me
    It should become:
    Code:
    $res_eml = db_res("SELECT `ID` FROM `Profiles` WHERE `Status` <> 'Unconfirmed' AND `EmailNotify` = 'Notify_Me' $sex_filter_sql $age_filter_sql $country_filter_sql");

    3)

    At periodic/notifies.php

    Check this line:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, Profiles.RealName as Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.HTML as Body FROM  NotifyQueue INNER JOIN NotifyMsgs ON (NotifyMsgs.ID =  NotifyQueue.Msg) INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'Profiles' AND Profiles.EmailNotify  = 'NotifyMe' AND Profiles.EmailFlag = 'HTML'",0);
    And replace where it says:
    Code:
    NotifyMe
    with
    Notify_Me
    It should become:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, Profiles.RealName as Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.HTML as Body FROM  NotifyQueue INNER JOIN NotifyMsgs ON (NotifyMsgs.ID =  NotifyQueue.Msg) INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'Profiles' AND Profiles.EmailNotify  = 'Notify_Me' AND Profiles.EmailFlag = 'HTML'",0);

    Check this line:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, Profiles.RealName as Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.Text as Body FROM  NotifyQueue INNER JOIN NotifyMsgs ON (NotifyMsgs.ID =  NotifyQueue.Msg) INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'Profiles' AND Profiles.EmailNotify  = 'NotifyMe' AND Profiles.EmailFlag <> 'HTML'",0);
    And replace where it says:
    Code:
    NotifyMe
    with
    Notify_Me
    It should become:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, Profiles.RealName as Name, Profiles.Email, NotifyMsgs.Subj, NotifyMsgs.Text as Body FROM  NotifyQueue INNER JOIN NotifyMsgs ON (NotifyMsgs.ID =  NotifyQueue.Msg) INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'Profiles' AND Profiles.EmailNotify  = 'Notify_Me' AND Profiles.EmailFlag <> 'HTML'",0);

    Check this line:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, NotifyQueue.MsgText as Body, NotifyQueue.MsgSubj as Subj, Profiles.RealName as Name, Profiles.Email FROM  NotifyQueue INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'ProfilesMsgText' AND Profiles.EmailNotify  = 'NotifyMe'",0);
    And replace where it says:
    Code:
    NotifyMe
    with
    Notify_Me
    It should become:
    Code:
    $nfs_res = db_res("SELECT NotifyQueue.Email as ID1, NotifyQueue.Msg as ID2, NotifyQueue.MsgText as Body, NotifyQueue.MsgSubj as Subj, Profiles.RealName as Name, Profiles.Email FROM  NotifyQueue INNER JOIN Profiles ON (Profiles.ID = NotifyQueue.Email) WHERE  NotifyQueue.`From` = 'ProfilesMsgText' AND Profiles.EmailNotify  = 'Notify_Me'",0);
    That fixed everything for me.
    Well i just noticed you are using 5.6..... I dont know if anything has changed. Im using 6.0.0.3. But the steps u mentioned seem ok. Try update message then add message....and then que it.


    I dont wht the 5.6 menu looks like but I do all three steps just in case.


    Maybe Smoge or one of the others familiar with 5.6 can hop in here.


    I'll look around for some mail issues in the scripts some more.....

  6. #16

    Join Date
    Apr 2010
    Posts
    4

    Default Mass Mailer Queue mails not being sent on Dolphin 6.1.6

    I also have an issue of mails not being sent too on my 6.1.6 version. My old version 6.0.003 was working fine. I followed the instruction here changing the NotifyMe with Notify_Me and adding the $total_per_query code but no improvement. Hope someone will help fix this issue too.

+ Reply to Thread (include dating software, release, and patch number!)
Page 2 of 2 FirstFirst 1 2

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Can anyone get the Mass Mailer to work??
    By 1Footballer.com in forum Boonex Dolphin 7
    Replies: 9
    Last Post: 04-05-2011, 11:12 AM
  2. sort mass mailer
    By tester00 in forum Free Mod Exchange
    Replies: 10
    Last Post: 08-14-2006, 11:56 AM
  3. cant use Mass letters
    By warrior in forum General Troubleshooting
    Replies: 0
    Last Post: 06-05-2006, 11:22 AM
  4. New mass mailer
    By ijk in forum General Issues, Comments, Questions
    Replies: 1
    Last Post: 01-19-2006, 06:11 AM
  5. Mass Mailer Problem
    By CyberDJ2 in forum Bugs aeDating v4.1.0
    Replies: 0
    Last Post: 11-07-2005, 01:48 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts