<?php

class ProviderLeadEmail {

public static function send($provider, $lead){

$subject = "New Lead Received";

$message = "

New Lead Received

Customer: ".$lead['name']."
Phone: ".$lead['phone']."
Service: ".$lead['service']."
Pincode: ".$lead['pincode']."

";

Email::send($provider['email'], $subject, $message);

}

}