@sendmail DOES work from the Web! It just looks as if it is sent from "the server". This code uses the names of 2 CGI variable which Domino will automatically populate when the page loads.
By submitting your email address, you agree to receive emails regarding relevant topic offers from TechTarget and its partners. You can withdraw your consent at any time. Contact TechTarget at 275 Grove Street, Newton, MA.
Beware: You need to save the doc first before you can get this to work as you need the UNID of the doc to build the URL (included in code)
Create 2 text, editable fields called server_name, and path_info on your form, and use the following code in a button etc.
@MailSend("Receiver" ; "" ; "" ; "A New Document has been created by " + @Name([CN];@UserName) ;"Please click on the link to open the document->"+@NewLine+ URL;""; "" );