Developer forum

Forum » Templates » Sending form CSV to email. Or something.

Sending form CSV to email. Or something.

Nikki Strømsnes
Reply
Our client has a form forged in the depths of Hell. They want this data extracted, so it's been set up to save as a *.CSV. All is well.

Turns out, the gentleman who is supposed to interpret the data doesn't have access to the solution, so what they want, is for me to figure out a way to send an email or upload to FTP, every time the form is submitted.

I'm very sceptical to this. Is this somehow possible to do with standard DW functionality, or do we need to involve the backend monkeys? I feel I should just go out and get a batch of bananas right away, but it sure would be neat if it could be handled frontend.

The form is set up in the old form module, as the client feel it's easier and more flexible, but they do have both form modules installed with extended.

Replies

 
Nuno Aguiar
Reply
Hi Nikki,

You should easilly accomplish this by simply:
http://www.yourwebsite.com/Files/Filer/FormData/Form_formname_check_in_fileManager.csv

Nuno

 
Nikki Strømsnes
Reply
Hmm... Pardon my ignorance. Could you please elaborate?

The problem is not creating the CSV. I want to have it automagically sent to a email-address when someone submits new data to it. 
 
Nuno Aguiar
Reply
This post has been marked as an answer
Hi Nikki,

No, automatically sent to the e-mail is something you won't be able to do.

A client of ours has an old form, and what he does is to loads the URL and download the updated csv file, whenever he receives a new e-mail from the forms module. I believe he that the URL in his browsers's favorites toolbar.

Nuno

Votes for this answer: 0
 
Nikki Strømsnes
Reply
Yeah, that's what I feared, but it was worth a shot, even if it was a long shot. Backend Monkey Team dispatch!


Cheers, Nuno. :)
 
Jais Edelmann
Reply
Isent there an event/notificationsubscriber you can hook up to and just create a method with asmtpclient and mailmessage and fire off the method eachtime the event/notification subscriber is hit?
 
Morten Bengtson
Reply
Hi Jais,

In the "new" Forms module you can implement an extension to handle the form save event. You do that by creating a class that inherits from Dynamicweb.Modules.DataManagement.FormSaveProvider

You can find the documentation for Data Management Extensibility here: 
http://developer.dynamicweb-cms.com/downloads/documentation.aspx

/Morten

 

You must be logged in to post in the forum