Hi I am trying to use phpmailer smtp for some webform but can't get it to work. I use the below script and didn't get any error message but the emails were never received. The whole website is encrypted with SSL. Is there anything addition needed? Any help will be appreciated. thx.

PHP Code:
                $mail = new PHPMailer();
        
$mail->IsSMTP(); 
        
$mail->SMTPAuth true;                              
        
$mail->Host 'mail.domain.com';                 
        
$mail->Port 25;                                    
        
$mail->Username 'smtp@domain.com';               
        
$mail->Password 'Password';   
        
        
$mail->SetFrom($email$firstname " " $lastname);
        
$mail->AddAddress($contact);
        
$mail->Subject  $subject;
        
$mail->MsgHTML($message);

        
$mail->WordWrap 50;
        
$mail->Send();