sinevia/ php-library-contact-as-a-service
PHP库。作为服务的联系方式
v1.4.0
2020-10-02 03:44 UTC
This package is auto-updated.
Last update: 2024-08-29 04:43:16 UTC
README
这是一个PHP库,提供“作为服务”的联系方式。联系表单请求会发送到发送者的电子邮件地址进行验证,然后再发送给最终收件人。
使用方法
$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!'; }