+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Contact Form Submit Confirmation Email

Contact Form Submit Confirmation Email

3 posts, 0 answered
  1. Jason
    Jason avatar
    4 posts
    Registered:
    11 Jul 2016
    11 Jul
    Link to this post
    If I need to send out a email after a contact form submission, how do I go about doing it?
  2. Arnob Makhlaqur
    Arnob Makhlaqur avatar
    41 posts
    Registered:
    21 Nov 2016
    14 Jul
    Link to this post
    Hi Jason,

    To send the confirmation email to the form submitter, need to override the SendMessage() method of the Sitefinity's default SmtpSender.

    1. Inherit the Sitefinity's default SmtpSender into your custom class (Ref. http://www.sitefinity.com/developer-network/knowledge-base/details/how-to-extend-sitefinity-smtpsender)

    2. Retrieve the receiver's email address from the form field (Ref. http://docs.sitefinity.com/for-developers-get-formfield-values-from-submitted-form-responses)

    3. Check whether the notification is for the form submission.

    4. Use IMessageInfo to get the default form notification details, e.g. subject and body in case of sending the default form notification to the submitter.

    5. Make a custom email and send it to the submitter email address using custom forms control (Ref. http://www.sitefinity.com/blogs/radoslav-georgievs-blog/2011/12/23/how_to_implement_notifications_for_incoming_forms_responses)

    Also the following third party forms extension, Fenêtre Form Extension for Sitefinity, can be used which is having the option to send confirmation e-mail message to form submitter:

    https://github.com/Fenetre/Sitefinity-Form-Extension-Widget 

    Regards,
    Arnob Makhlaqur
    Telerik by Progress
     
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Sitefinity CMS Ideas&Feedback Portal and vote to affect the priority of the items
     
  3. Jason
    Jason avatar
    4 posts
    Registered:
    11 Jul 2016
    14 Jul in reply to Arnob Makhlaqur
    Link to this post
    Thanks for replying. I will look into the links provided.
3 posts, 0 answered