locked
How to add validation before sending an email for attachment? RRS feed

  • Question

  • Hi,

    Is there any way to add validation before sending an email for checking whether attachment exists or not?

    Customer requirement is to prompt user every time before sending an email if attachment does not exist.

    Your inputs are highly appreciated.

    Thanks in advance!

    Friday, August 30, 2013 3:07 PM

Answers

  • Pls refer to this post and use a custom script to check for attachments and a prompt.

    Hope this helps!


    If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'

    • Marked as answer by Knopix007 Saturday, August 31, 2013 6:09 AM
    Saturday, August 31, 2013 6:03 AM

All replies

  • Hi,

    You can do the validation in a Pre event plugin (Send / SendFromTemplate messages on Email entity). You would be able to abort the send and show a message to the user on why the email is not sent. This is not a prompt though!


    Mamta

    If my response helps you in finding your answer then please click “Mark as Answer” and “Vote as Helpful”


    Friday, August 30, 2013 11:02 PM
  • Thanks!

    Is there any way to do it with help of java script?

    Saturday, August 31, 2013 5:52 AM
  • Pls refer to this post and use a custom script to check for attachments and a prompt.

    Hope this helps!


    If my response helps you in finding your answer then please click 'Mark as Answer' and 'Vote as Helpful'

    • Marked as answer by Knopix007 Saturday, August 31, 2013 6:09 AM
    Saturday, August 31, 2013 6:03 AM