|
|
@@ -16,7 +16,8 @@
|
|
|
|
|
|
<programlisting language="php"><![CDATA[
|
|
|
// Create transport
|
|
|
-$transport = new Zend_Mail_Transport_Smtp('localhost');
|
|
|
+$config = array('name' => 'sender.example.com');
|
|
|
+$transport = new Zend_Mail_Transport_Smtp('mail.example.com', $config);
|
|
|
|
|
|
// Loop through messages
|
|
|
for ($i = 0; $i < 5; $i++) {
|
|
|
@@ -49,9 +50,9 @@ for ($i = 0; $i < 5; $i++) {
|
|
|
// Create transport
|
|
|
$transport = new Zend_Mail_Transport_Smtp();
|
|
|
|
|
|
-$protocol = new Zend_Mail_Protocol_Smtp('localhost');
|
|
|
+$protocol = new Zend_Mail_Protocol_Smtp('mail.example.com');
|
|
|
$protocol->connect();
|
|
|
-$protocol->helo('localhost');
|
|
|
+$protocol->helo('sender.example.com');
|
|
|
|
|
|
$transport->setConnection($protocol);
|
|
|
|