PHP Library. Contact as a Service

v1.4.0 2020-10-02 03:44 UTC

This package is auto-updated.

Last update: 2023-05-29 01:50:24 UTC


A PHP library to provide contact-as-a-service. Contact form requests are sent to the sender's email address to be verified prior to sending to the final recipient.


$response = Sinevia\ContactAsAService::send([
   'From' => '',
   'To' => '',
   'Cc' => '',
   'Bcc' => '',
   'Text' => 'Text',
   'Html' => 'Html',
   'Subject' => 'Subject',
   'Origin' => 'Name of Contact Form',

if ($response['status'] == "success") {
    $message = 'Your request was successfully received. Before we process it further, check your email and click the confirmation link we have sent to you!';
} else {
    $message = 'Your request failed to be send. Please try again later!';