Strongly Bad Emails
If you want to send emails from a Java program, you might be tempted to use the
javax.mail package, which contains objects for doing exactly that. It’s a relatively straightforward API, and while it’s a bit verbose, that’s hardly unusual for Java. You just wrap it up in a convenience function based on how you need to call it, and reuse that, right?
Well, PHP, an obviously superior language, already did that work. There’s a built-in
mail function, which sends emails. It uses your
php.ini file to figure out what SMTP service to use, making the parameters to the function more “obvious”.