Quantcast
Channel: LoadRunner Practitioners Forum topics
Viewing all articles
Browse latest Browse all 3978

Unable to send mail with attachment using smtp_send_mail

$
0
0

Hi,

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",

         "To=xx@xxx.com",

        "From=xx@xxx.com",

        "Subject={Subject}",

        "ContentType=text/plain;",

        "charset=\"iso–8859–4\"",

        MAILOPTIONS,

            "X–Priority: 3",

            "X–MSMail–Priority: Normal",

            "X–Mailer: Microsoft Outlook Express 10.31.88.237",

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

        MAILDATA,

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

            "File=Closure.PDF",

        LAST );

 


Viewing all articles
Browse latest Browse all 3978

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>