cancel
Showing results for 
Search instead for 
Did you mean: 

Can Web Scripts Send Email?

bwalther
Champ in-the-making
Champ in-the-making
Hello,

I have an HTML page that contains an HTML form.  I want the page to be able to gather the form information and send an email. Presently I have it posting to a Web Script, but I don't know if the script can send email.

Is this the best way to accomplish what I'm trying to do?

Can web scripts send emails?  Can they write the form data to the repository somehow for later viewing?

Any help would be greatly appreciated!

Thanks,
Brian
1 REPLY 1

kevinr
Star Contributor
Star Contributor
WebScripts use the JavaScript API, you can send an email from the JavaScript API using an 'email' Action - see the examples on the JavaScript wiki page. The API also supports writing content and meta-data to nodes, therefore you can easily store data for viewing later. i.e if you create a file using the JavaScript API it will be visible in the web-client.

Thanks,

Kevin