Best Practices for API-Based Email Sending and Security