Author Topic: Making !remove automatic on all emails  (Read 316 times)

scottscomp

  • I'm new here
  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Making !remove automatic on all emails
« on: July 22, 2008, 06:06:55 AM »
Is there an easy way to insert the !remove shortcode automatically into every single outgoing message?  I have a customer that will be using LMP and he tends to forget to add the !remove link..  I'd like to make it automatic for him.


-Scott

DW

  • Administrator
  • I know email inside out
  • *****
  • Posts: 3713
  • Karma: +33/-0
    • View Profile
    • http://listmailpro.com
Making !remove automatic on all emails
« Reply #1 on: July 22, 2008, 10:08:45 AM »
Hi Scott, Not an easy mod, this one, as there are so many different types of messages sent by LMP.

Search admin.php for
Code: [Select]
  if(!$nouser){

You will see numerous if() statements that set the message body.

If you want to mod sent messages, scheduled messages, followups and the welcome email, add custom code just before this line:
Code: [Select]
   if($mtype=='4' && (!$conf || $xid == 'resume')){

Something like this should do it
Code: [Select]
if($mtype<'4' && !strstr($msg,'!remove')) $msg=trim($msg)."\n\n!remove";
Regards
ListMailPRO Author & Developer - Help | Support | Hosting