How to mark reset attachments from SMTP server

喜夏-厌秋 提交于 2019-12-12 02:16:19

问题


How can I mark and reset the inpustream of attachments file from SMTP server for multiple reuse later?Any suggestions will be welcome.


回答1:


you are not willing to create the service now, I think you are stuck with the scenario you describe. There are some things though you could do to circumvent the problem of no user firing up the client anymore while there are still pending messages.

You could add a commandline utility that will only check for pending messages and try to send them.

Add this commandline utility to the StartUp folder or Run key in the registry. This way messages will at least get sent when the computer restarts, even if the user does not fire up the your app.

Add a scheduled task to run this utility at least once every day. The scheduled task can be added by code or by your installer.

If you do both, you will only have to worry about pending messages of users that never start their computer again.



来源:https://stackoverflow.com/questions/40990095/how-to-mark-reset-attachments-from-smtp-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!