if ( !$wps_mail->sendmail($_POST['my-recipient']) ) { echo '<p>Problem sending mail, sorry.</p>'; } $action = 'inbox'; } // Check to see if action is to delete a mail if ($action == 'delete') { if ( !$wps_mail->set_as_deleted($_GET['id']) ) { echo '<p>Problem deleting mail, sorry.</p>'; } $action = 'inbox'; } } if ( ($action == 'reply' && $mail_id) || ($action == 'inbox' || $action == 'sent') ) { // If replying, get the original mail for referene