Forum Discussion

Pritish_Panda's avatar
Pritish_Panda
Contributor
9 years ago
Solved

Is there any way that I can send a mail with a file attachment through SoapUI .

Hi All,

 

I would like to send a mail through soaupUI with a file attachment so Soaup UI has the Send mail step but it doesn't have the facility to attache a file . I there any way to handle this .

 

 

Thanks 

Pritish Panda

  • Hi Pritish,

     

    As far as I see, the current Send Mail TestStep implementation doesn’t allow sending attachments. I suggest that you submit this as a feature request here.

     

    In the meantime, to implement your task, you will need to create a Groovy script that will send email messages with attachments. I’ve googled a bit – there should be classes for this:

    https://www.google.com?q=send+email+with+attachment+groovy

     

     

2 Replies

  • TanyaYatskovska's avatar
    TanyaYatskovska
    SmartBear Alumni (Retired)

    Hi Pritish,

     

    As far as I see, the current Send Mail TestStep implementation doesn’t allow sending attachments. I suggest that you submit this as a feature request here.

     

    In the meantime, to implement your task, you will need to create a Groovy script that will send email messages with attachments. I’ve googled a bit – there should be classes for this:

    https://www.google.com?q=send+email+with+attachment+groovy