3
今天我註冊Mandrill賬戶以瞭解它是如何工作的。 This is my PHP code發送一個簡單的電子郵件:Mandrill回覆
<?php
$apikey = 'API_KEY_HERE';
require_once 'Mandrill.php';
$mandrill = new Mandrill($apikey);
$message = new stdClass();
$message->html = "html message";
//$message->text = "text body";
$message->subject = "email subject";
$message->from_email = "[email protected]";
$message->from_name = "My App Name";
$message->to = array(array("email" => "[email protected]"));
$message->track_opens = true;
$response = $mandrill->messages->send($message);
var_dump($response);
?>
這個腳本使用this Bitbucket repo。
我想知道如何在腳本中插入回覆電子郵件地址變量。什麼是變量名稱?我在看docs page,但我被困住了。
我是PHP新手。我非常感謝你的幫助。提前致謝!
你應該接受這個作爲你的答案。 – Spotlight
謝謝@ awesomebing1! –