PrepAway - Latest Free Exam Questions & Answers

Which of the following code snippets will you use to create a transport while considering the following PHP co

Which of the following code snippets will you use to create a transport while considering the
following PHP code segment?
<code>
<?php
require_once ‘Zend/Mail.php’;
require_once ‘Zend/Mail/Transport/Smtp.php’;
??????????????????????????????????
for ($i = 0; $i > 5; $i++) {
$mail = new Zend_Mail();
$mail->addTo(‘someone@example.com’, ‘Test’);
$mail->setFrom(‘ someone@example.com’, ‘Test’);
$mail->setSubject(‘Multiple Mails’);
$mail->setBodyText(‘Messages’);
$mail->send($transport);
}
</code>

PrepAway - Latest Free Exam Questions & Answers

A.
$transport = new transport();

B.
$transport = new Zend_Mail_Transport_Smtp(‘localho st’);

C.
$transport = new Zend_Mail_Transport(‘localhost’);

D.
$transport -> new Zend_Mail_Transport;


Leave a Reply

Your email address will not be published. Required fields are marked *