Author Topic: Followups are sent too early  (Read 1770 times)

acheson

  • Posts: 4
    • View Profile
Followups are sent too early
« on: December 23, 2007, 06:36:18 pm »
I have set up a series of 9 emails (there will be many more) to go out weekly. I have set the delay to 6 on each of them but the first follow ups come after 24 hours.

When I go into users, I notice that when  new user is subscribed, the delay is 0 after their name.  Does that mean that the first email coming out of listmail after signup (which happens at this stage through amember) comes 24 hours after?  If so, is there anyway of getting signups to have the 6 delay automatically?  If not, is it just a matter of adding in 1 more follow up to be sent 24 hours after and then the usual sequence follow every 7 days after that?

Also is there anyway that you can send an immediate email rather than waiting 24 hours for the first one to arrive?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
Followups are sent too early
« Reply #1 on: December 27, 2007, 03:40:13 am »
Since you're hosted with me, let's take a look at the aMember ListMail plugin code...
Code: [Select]
           $db->query($s = "INSERT INTO {$lm_db}users
            (uid,list,fname,lname,email,cseq,cdel,cnf,dateadd,htmail)
            VALUES
            ('$us',$list_id,'$member[name_f]', '$member[name_l]',
            '$member[email]',  1, 0, 1, '$dat', 1
            )

It looks like aMember has hard-coded a seq # of 1 and delay of 0 for new signups.  What they could/should have done was read this from the ListMail lm_follow table...

Also, there does not appear to be ANY code for sending the list's "welcome email".

You may need to contact aMember support.  Here is some code which they could use for their integration to do what you want:
Code: [Select]
<?php// don't forget to urlencode() the first and last name   $url = "http://example.com/mail/signup.php?list=1&email=$payer_email&fname=$first_name&lname=$last_name&seq=1&del=0&overwritedupes=1";   $lmp = fopen($url,'r');   fclose($lmp);?>

or
Code: [Select]
$url = "http://www.domain.com/newsletter/signup.php?list=2&email=" .urlencode($_POST['email'])."&fname=" .urlencode($_POST['fname'])."&seq=1&del=0";
$ch = curl_init($url);
curl_exec($ch);
curl_close($ch);

Note: Taken from this post

Regards
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting