sinevia / php-library-contact-as-a-service
PHP Library. Contact as a Service
Installs: 232
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 1
Open Issues: 0
pkg:composer/sinevia/php-library-contact-as-a-service
This package is auto-updated.
Last update: 2025-09-29 02:28:10 UTC
README
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.
Usage
$response = Sinevia\ContactAsAService::send([ 'From' => 'from@test.com', 'To' => 'to@test.com', 'Cc' => 'cc@test.com', 'Bcc' => 'bcc@test.com', '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!'; }