1.

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’);The question was posed to me by my college professor while I was bunking the class.My question is based upon Networking with PHP topic in section File and Session Handling in PHP of PHP

Answer»

Right CHOICE is (c) $mimemail->addAttachment(‘attachment.pdf’);

EASIEST explanation: Call the Mail_Mime object’s addAttachment() METHOD passing in the attachment NAME and extension.



Discussion

No Comment Found

Related InterviewSolutions