Register Now

Login

Lost Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

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: c
Explanation: Call the Mail_Mime object’s addAttachment() method passing in the attachment name and extension.

Join The Discussion