> SparkPost:批量和交易電子郵件的強大電子郵件基礎架構服務
SparkPost是一個功能強大的API驅動電子郵件基礎架構平台,提供了一個統一的解決方案,用於發送高批量和個人交易電子郵件。 SparkPost擁有接近完美的收件箱放置(約98%),大大超過了行業平均值,可提供35個關鍵指標的實時跟踪,從而對電子郵件性能提供無與倫比的可見性。>
。
Sparkpost和Mandrill Shift的興起>最近對曼德里爾(Mandrill)自由層的停產使許多人尋求交易電子郵件的替代方案。 SparkPost成為強大的競爭者,提供了一個全面的解決方案,該解決方案超過了幾個關鍵領域的Mandrill。 實際上,曼德里爾(Mandrill)的母公司MailChimp現在建議SparkPost作為合適的替代品。 SparkPost比Mandrill
的關鍵優勢
>
統一平台:
記住要添加
SparkPost 常見問題(常見問題解答) >本節在很大程度上與原始內容保持不變,並為SparkPost的功能,安全性,集成,可靠性,定價和客戶支持提供了共同答案。 原始的常見問題解答部分已經寫得很好,而且很全面。 此示例演示了使用SparkPost PHP SDK發送簡單的電子郵件:
composer require sparkpost/php-sparkpost
config.php
中配置API鍵:<code class="language-php">return [
"sparkpost" => [
"key" => "<your api key>",
],
];</your></code>
send.php
發送電子郵件:<code class="language-php">require("vendor/autoload.php");
// ... (SparkPost client initialization using Guzzle6HttpAdapter) ...
$results = $client->transmission->send([
"from" => "Sandbox <sandbox>",
"html" => "hello html email",
"text" => "hello plain text email",
"subject" => "Testing SparkPost Email",
"recipients" => [
[
"address" => [
"name" => "Chris",
"email" => "cgpitt@gmail.com",
],
],
],
]);</sandbox></code>
.gitignore
以排除config.php
和vendor/
。
以上是什麼是Sparkpost?的詳細內容。更多資訊請關注PHP中文網其他相關文章!