Author Topic: One list, two welcome messages?  (Read 2056 times)

chris6

  • Posts: 93
    • View Profile
One list, two welcome messages?
« on: June 27, 2004, 11:28:20 am »
I have one Database for our newsletter subscribers but I want to have two different confirmation sign ups that go out immediately to them, is this possible?

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
One list, two welcome messages?
« Reply #1 on: June 27, 2004, 06:22:57 pm »
I'm not sure I understand.  You want to have two confirmation messages for the same list?  Or, are you using 2 different lists?
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting

chris6

  • Posts: 93
    • View Profile
one list two sign ups
« Reply #2 on: June 28, 2004, 01:14:47 am »
I have one list and I want to able to direct all my signups to one list but I want to have two different confirmations to send to them.

DW

  • Administrator
  • Posts: 3787
    • View Profile
    • https://legacy.listmailpro.com
One list, two welcome messages?
« Reply #3 on: July 01, 2004, 01:59:50 am »
This isn't the easiest thing to do - it requires a hack.

You would need to utilize "signup-xtra.php", which can be found in the /xtra folder of the ZIP.  Copy this file to your main ListMail folder and it will run after every signup and optionally after manual additions.

In the signup-xtra.php file, below the header (bunch of comments) and above the footer (PHP closing tag ?>), place code similar to as follows:

Code: [Select]

// only runs after subscription to list 1
if($list=='1'){
 mail($email,"Subject","Click here to confirm your subscription!

http://site.com/mail/confirm.php?u=$uid

Thanks!","From: \"Your Newsletter\" <news@site.com>\nReturn-path: bounce@site.com");
}


Replace "site.com/mail" with your ListMail URL, Subject with your subject, modify the message to your liking, set the "From" name and email address to what you use for the list, and set the Return-path to your ListMail "bounce to email address".

Note: Any double-quotes in your subject or message body will need to be "escaped", ie: \" instead of "
Dean Wiebe
ListMailPRO Author & Developer - Help | Support | Hosting