lib/mail/Mail.php
public function setAsm($group_id, $groups_to_display = null)
    {
        if ($group_id instanceof Asm) {
            $asm = $group_id;
            $this->asm = $asm;
        } else {
            $this->asm = new Asm($group_id, $groups_to_display);
        }
    }
public function setAsm($group_id, $groups_to_display = null)
    {
        if ($group_id instanceof Asm) {
            $asm = $group_id;
            $this->asm = $asm;
        } else {
            $this->asm = new Asm($group_id, $groups_to_display);
        }
    }
public function setAsm ( $ group_id , $ groups_to_display = null ) { if ( $ group_id instanceof Asm ) { $ asm = $ group_id ; $ this -> asm = $ asm ; } else { $ this -> asm = new Asm ( $ group_id , $ groups_to_display ) ; } }
Add a Asm describing how to handle unsubscribes to a Mail object

@param int|Asm $group_id Asm object or unsubscribe group id
to associate this email with
@param array $groups_to_display Array of integer ids of unsubscribe
groups to be displayed on the
unsubscribe preferences page
Add a Asm describing how to handle unsubscribes to a Mail object