in reply to API for email configuration within an application
Many options i'm sure. If you're willing to part with a few bucks, this one looks very comprehensive.. Dada Mail.
No personal experience or affiliation with Dada Mail, use at your own risk, may contribute to hair loss.
In Section
Seekers of Perl Wisdom