Trying to reply back to particular email if there are no attachments to the same email id which the mail has been sent

Trying to reply back to particular email if there are no attachments to the same email id which the mail has been sent. Please help

Hi @Sudheer_Kumar_S ,

You can use the MailMessage class properties, to find if it has attachments, and then also obtain the specific email Sender, to use in order to reply:

image

in this case you want to use:

If -> Email.Attachments.Count = 0

and if the answer is True, then you want to send an email, to the:

Email.Sender

Email.Subject ->(if you want to also keep the subject)

Email.Body → If you want to also keep the body)

image

ForEach properties:
image

Hope this is what you need!

Best Regards,
Ignasi

1 Like