jamesfredley commented on code in PR #524:
URL: 
https://github.com/apache/grails-static-website/pull/524#discussion_r3639505017


##########
guides/grails-email/v8/guide/controller.adoc:
##########
@@ -0,0 +1,24 @@
+Accept JSON payloads with a command object that implements `Email` and 
validates required fields:
+
+[source,groovy]
+.grails-app/controllers/example/EmailCmd.groovy
+----
+include::../snippets/grails-app/controllers/example/EmailCmd.groovy[]
+----
+
+The controller delegates to `EmailService`:
+
+[source,groovy]
+.grails-app/controllers/example/MailController.groovy
+----
+include::../snippets/grails-app/controllers/example/MailController.groovy[]
+----
+
+Example request:

Review Comment:
   Please add a prominent safety note before this request example. The tutorial 
endpoint accepts arbitrary recipients and message content without 
authentication, so a deployed copy can become an outbound mail relay through 
the configured provider. State that it is demonstration-only and must have 
authentication, authorization, recipient controls, and abuse/rate-limit 
protection before any public or production exposure.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to