<?php
 require_once __DIR__ . '/catchexception.php';
  $to = 'suriyasri8@gmail.com';
   $subject = 'Marriage Proposal';
   $message = 'Hi Jane, will you marry me?'; 
   $from = 'suriyasri8@gmail.com';
    
   // Sending email
   if(mail($to, $subject, $message)){
       echo 'Your mail has been sent successfully.';
   } else{
       echo 'Unable to send email. Please try again.';
   }
?>
     