none
Send Email Notifications for Administrative Time RRS feed

  • Question

  • Hello,

    I would like to send an email when a user send an Administrative Time (like Vacation) and when the approver accept/refuse this. And I don't know how to get the email of the user and of the approver.

    I already use the OnLineApproving Event Handler and OnUpdating EventHandler. Is it to possible to send an email in this event handler ?

    Thank you.

    Monday, November 12, 2012 5:10 PM

Answers

  • Hi Justin,

    Yes, you can write custom code in your event handler to send an email. You can use SharePoint utility to send email, be sure to set up email setting from Central Admin.

    http://msdn.microsoft.com/en-us/library/ms460489.aspx

    http://tolgaizgi.wordpress.com/2011/05/31/sharepoint-2010-c-how-to-send-an-email/

    Hope this helps you.


    Thanks, Kashif

    • Marked as answer by Justin Bériot Tuesday, November 13, 2012 1:11 PM
    Tuesday, November 13, 2012 9:34 AM

All replies

  • Hi Justin,

    Yes, you can write custom code in your event handler to send an email. You can use SharePoint utility to send email, be sure to set up email setting from Central Admin.

    http://msdn.microsoft.com/en-us/library/ms460489.aspx

    http://tolgaizgi.wordpress.com/2011/05/31/sharepoint-2010-c-how-to-send-an-email/

    Hope this helps you.


    Thanks, Kashif

    • Marked as answer by Justin Bériot Tuesday, November 13, 2012 1:11 PM
    Tuesday, November 13, 2012 9:34 AM
  • Thank you Kashif !
    Tuesday, November 13, 2012 1:12 PM