Zend Framework CertificationVersion 4.1 ZF-100-500 Question # 30 Topic 4 Discussion

Zend Framework CertificationVersion 4.1 ZF-100-500 Question # 30 Topic 4 Discussion

ZF-100-500 Exam Topic 4 Question 30 Discussion:
Question #: 30
Topic #: 4

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

<?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);

}


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;


Get Premium ZF-100-500 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.