database - Storing Email Account Passwords for SMTP Mailing for a WordPress Plugin

I am currently converting a client booking system I created into a WordPress plugin. It uses the PHPMailer library to se

I am currently converting a client booking system I created into a WordPress plugin. It uses the PHPMailer library to send emails. I am using SMTP security to send the emails and thus need the email account and password. I am currently encrypting the passwords in a database and decrypting them when I need them. Everything works fine and I have no problem doing that.

If I were to make this into a plugin that would end up in the repository is this an okay practice? Is there a more secure method? It seems WordPress would like to use their options system for most things.

Also, it seems that I would just have to hope that who is ever using this plugin that their web server has an email service running. Maybe I should allow an option for non SMTP email sending. Although this makes it way more likely it will end up in a spam folder.

The guidelines are not very clear about things like this. I have been programming for years but this is my first WordPress plugin.

Any suggestions or guidance would be much appreciated! Thank you!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1742287649a4415613.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信