Email reference

From VPOIDS Documentation
  • Send password reset
    • password_change
      ->setBody(
        '<p>Hi, '.$person->getFirstName().' ('.$person->getUsername().'),</p>'.
        "<p>We received a request to reset the password associated with this username. This could be because you forgot the password on your account.</p>".
        "<p>If you made this request and wish to reset your password, please follow the link below:<br/>
        <a href='
        ".

Member Applications & Renewals

  • MemberApplicationRecieved
    • Email Body Record: membership
      • name (the recipient's name)
      • email (recipient's email)
      • organization_name
      • member_info_name
      • member_info_email
      • organization_phone
  • MemberApplicationProcessed
    • Email Body Record: membershipprocessed
      • name (the recipient's name)
      • email (recipient's email)
      • organization_name
      • site_url
      • organization_phone
      • member_id
      • organization_home_page
      • member_info_name
      • member_info_email
  • MemberApplicationFailure
    • Email Body Record: membershipfailure
      • name (the recipient's name)
      • email (recipient's email)
      • organization_name
      • organization_phone
      • member_info_email
  • memberApplicationNotice
    • Email Body Record: membershipnotice
      • first_name (of the person who made the application
      • last_name
      • address
      • city
      • state
      • zipcode
  • MemberRenewalReceived
    • Email Body Record: membership_renewal
      • name (of the member renewing)
      • email (of the member renewing)
      • dues_amount
      • donation_amount
      • total_amount
      • member_info_email
      • member_info_name
      • organization_phone
  • MemberRenewalFailure
    • Email Body Record: renewal_failure
      • name (of the member renewing)
      • email (of the member renewing)
      • organization_name
      • webmaster_email
      • organization_phone
      • member_info_email
  • MemberRenewalNotice
    • Email Body Record: renewal_notice
      • first_name (of the person who made the application
      • last_name
      • address
      • city
      • state
      • zipcode

Mission coordination & pilot requests

  • MissionCoordinatedAdded
    • Email Body Record: coordinator_added
      • name (of the coordinator recipient)
      • email (of the coordinator)
      • external_id
      • leg_number
  • MissionPilotAdded
    • Email Body Record: pilot_added
  • PilotRequestAccepted
    • Email Body Record: pilot_request_accepted
      • organization_name
      • external_id (Mission ID)
      • leg_number
      • mission_date
      • pilot_type
      • afids_url
  • PilotRequestNotAccepted
    • Email Body Record: pilot_request_not_accepted
      • organization_name
      • external_id (Mission ID)
      • leg_number
      • mission_date
  • RemoveLegPilotAck
    • Email Body Record: pilotremove
      • name (of the pilot recipient)
      • email (of the pilot recipient)
      • organization_name
      • external_id (Mission ID)
      • leg_number
      • mission_date
  • RevivalPilotRequestAck
    • Email Body Record: pilot_revival
      • name (of the pilot recipient)
      • email (of the pilot recipient)
      • organization_name
      • external_id (Mission ID)
      • leg_number
      • mission_date

Mission emails

  • MissionInfoToRecipients(sfWebRequest $request)
  {
      
    $file_path1=sfConfig::get('sf_upload_dir').'/bulk-email-attachments/waiver_normal.pdf';
    $file_path2=sfConfig::get('sf_upload_dir').'/bulk-email-attachments/waiver_normal_spanish.pdf';
    $file_path3=sfConfig::get('sf_upload_dir').'/bulk-email-attachments/waiver_organ_english.pdf';
    
    $message = Swift_Message::newInstance()
      ->setSubject('Patient Airlift Services Mission Information Form')
      ->setTo($this->recievers)
      //->setTo('josho@angelflightwest.org')
      ->setBody($this->body, 'text/html');

     if ($this->files == 1) {
        if($this->type_name == 'Organ'){
            $message->attach(Swift_Attachment::fromPath($file_path3));
        }else {
            $message->attach(Swift_Attachment::fromPath($file_path1));
            $message->attach(Swift_Attachment::fromPath($file_path2));
        }
        
      }
     $this->send($message, $this->sender);
     return sfView::NONE;
  }
  • MissionToPilot
  • SendBulk(sfWebRequest $request)
  {
        $this->getContext()->getConfiguration()->loadHelpers(array('Url'));
        /* @var Person */
        $siteEmail=sfConfig::get('app_mail', array());
        $siteName=sfConfig::get('app_name', array());
      
        $message = Swift_Message::newInstance()
        ->setSubject($this->subject)
        ->setTo($this->recievers)
        //->setTo('josho@angelflightwest.org')
        ->setBody($this->body, 'text/html')
        ;
        if ($this->files) {
        foreach ($this->files as $file) {
            $message->attach(Swift_Attachment::fromPath($file['path'])->setFilename($file['name']));
        }
        }
        $this->send($message, $siteEmail);

        return sfView::NONE;
  }

Mission requests

  • MissionReqReject
      ->setBody(
       "<p>".$text."</p>"
      , 'text/html')
    ;
    $this->send($message);
  • MissionReqReceived
    • Email Body Record: mission_received
      • name (of the passenger, follow-up contact or requester)
      • email (of the passenger, follow-up contact or requester)
  • MissionReqFailure
    • Email Body Record: mission_failure
      • first_name
      • last_name
      • address
      • city
      • state
      • zipcode
  • MissionReqNotice
    • Email Body Record: mission_notice
  • MissionReqProcessed
    • Email Body Record: mission_request_processed
      • name (of the passenger, follow-up contact or requester)
      • email (of the passenger, follow-up contact or requester)
  • itinerary_Mission_MissionLegCancel(sfWebRequest $request)
  {
    $email   = $this->email;
    $subject = $this->subject;
    $text    = $this->text;
    //Create the message
      $message = Swift_Message::newInstance()
      ->setSubject($subject)
      ->setTo($email)
      //->setTo('josho@angelflightwest.org')
      ->setBody(
        "<p>".$text."</p>", 'text/html');
    $this->send($message);
    return sfView::NONE;
  }

Events & reservations

  • EventReservationSuccessMail
    • event_confirmation