lundi 13 février 2017

Set bold the updated information from email notification when user updated their profile

Vote count: 0

Im about to update the email notification where the updated information should be bold only if certain inputs are modified from the admin. The case is, what should be the good pattern i need to implement to set the specific updated information in bold text only. I have my email code ready and working, though I'm confuse about to use the "date" to match the each of fields to fire up if it was updated.. Any good idea?

$contacts = array(  "firstname"       => $clients->firstname, 
                    "lastname"        => $clients->lastname,
                    "company"         => $clients->company,
                    "username"        => $clients->username,
                    "email"           => $clients->email_address,
                    "work_phone"      => $clients->work_phone,
                    "home_phone"      => $clients->home_phone,
                    "cell_phone"      => $clients->cell_phone,
                    "street_address"  => $clients->street_address,
                    "city"            => $clients->city,
                    "state"           => $clients->state,
                    "zip"             => $clients->zip
                  );



    Mail::send('_dash.emails.profile', $contacts, function ($message) use ($property_contact) {                             
      $ownerEmail = "email@domain.com";
      $ownerName = "Administrator Name";
      $recipient_name  = Request::get('firstname') .' '. Request::get('lastname');
      $recipient_email = explode(';', Input::get('email'));

      $message->from($recipient_email[0],$recipient_name);
      $message->to($ownerEmail,$ownerName);
      if( !empty($property_contact) ) {
        $message->cc($property_contact);
      }
      $message->subject("Profile Update Notification");                 
    });

So, If a user updated their email address, and save their profile. The email notification should bold only the email address and so on.

asked 37 secs ago

Let's block ads! (Why?)



Set bold the updated information from email notification when user updated their profile

Aucun commentaire:

Enregistrer un commentaire