Examveda
Examveda

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

D. $mimemail=>addAttachment(‘attachment.pdf’);

Answer: Option C

Solution(By Examveda Team)

Call the Mail_Mime object’s addAttachment() method passing in the attachment name and extension.

This Question Belongs to PHP >> PHP Networking

Join The Discussion

Related Questions on PHP Networking