Unable to send mail with attachment using smtp_send_mail


We have a requirement to trigger emails with PDF document as attachment.

I am using SMTP functions (smtp_send_mail) with the below code, but the mail is sent without the attachment:

If someone has used this function, please let me know what I am doing wrong in my case.


// ---------------SMTP Send Mail------------

    smtp_send_mail( "SendMail",







            "X–Priority: 3",

            "X–MSMail–Priority: Normal",

            "X–Mailer: Microsoft Outlook Express",

            "X–MieOLE: Produced By Microsoft MimeOLE V5.00.2919.6700",


            "MessageText=This is a case mail\r\n",


        LAST );