Vidyalelo
PHP · Q10

PHP Networking

Programming · PHP · question 10

Q10

Which of the following statements is used to add an attachment to the mail?

A.
$mimemail->attachment(‘attachment.pdf’);
B.
$mimemail=>attachment(‘attachment.pdf’);
C.
$mimemail->addAttachment(‘attachment.pdf’);
Answer
D.
$mimemail=>addAttachment(‘attachment.pdf’);

Answer: Option C

Solution

Answer: Option C
Solution:
Call the Mail_Mime object’s addAttachment() method passing in the attachment name and extension.