当前位置: 首页 > news >正文

手机上怎么建网站网站如何做静态化

手机上怎么建网站,网站如何做静态化,wordpress支付接口吗,佛山网站建设公司大全项目场景#xff1a; java mail集成james邮件服务器#xff0c;发送邮件时需要判断邮件是否发送成功。我们会发现JavaMail给用户发送邮件#xff0c;但是调用Transport类的sendMessage方法发送的邮件是没有返回值的#xff0c;所以判断不了。 但是我们可以用另一个解决方案…项目场景 java mail集成james邮件服务器发送邮件时需要判断邮件是否发送成功。我们会发现JavaMail给用户发送邮件但是调用Transport类的sendMessage方法发送的邮件是没有返回值的所以判断不了。         但是我们可以用另一个解决方案就是采用“系统退信”的方式来达到目的我们会发现163、qq等邮件发送失败就会“系统退信”。 需求 什么情况下会系统退信 邮箱地址错误或访问不通邮箱地址正确但是用户不存在 解决方案 修改james配置windows文件路径james\apps\james\SAR-INF\config.xml搜索关键字maxRetries 原内容 mailet matchAll classRemoteDeliveryoutgoingfile://var/mail/outgoing//outgoing!-- Delivery Schedule based upon RFC 2821, 4.5.4.1 --!-- 5 day retry period, with 4 attempts in the firsthour, two more within the first 6 hours, and thenevery 6 hours for the rest of the period. --delayTime 5 minutes /delayTimedelayTime 10 minutes /delayTimedelayTime 45 minutes /delayTimedelayTime 2 hours /delayTimedelayTime 3 hours /delayTimedelayTime 6 hours /delayTimemaxRetries 25 /maxRetries!-- The number of threads that should be trying to deliver outgoing messages --deliveryThreads 50 /deliveryThreads!-- If false the message will not be sent to given server if any recipients fail --sendpartialfalse/sendpartial!-- By default we send bounces to the bounce processor --!-- By removing this configuration James will fallback to hardcoded bounce --!-- notifications --bounceProcessorbounces/bounceProcessor /mailet 修改后的内容 mailet matchAll classRemoteDeliveryoutgoingfile://var/mail/outgoing//outgoing!-- Delivery Schedule based upon RFC 2821, 4.5.4.1 --!-- 5 day retry period, with 4 attempts in the firsthour, two more within the first 6 hours, and thenevery 6 hours for the rest of the period. --delayTime 1 minutes /delayTimemaxRetries 1 /maxRetries!-- The number of threads that should be trying to deliver outgoing messages --deliveryThreads 50 /deliveryThreads!-- If false the message will not be sent to given server if any recipients fail --sendpartialtrue/sendpartial!-- By default we send bounces to the bounce processor --!-- By removing this configuration James will fallback to hardcoded bounce --!-- notifications --bounceProcessorbounces/bounceProcessor /mailet 其实就是改了delayTime、maxRetries、sendpartial这三个标签 ......delayTime 1 minutes /delayTime maxRetries 1 /maxRetriessendpartialtrue/sendpartial...... 解析 这段内容就是邮件发送失败重试的机制这个outgoing文件夹里面就是需要重试的邮件 delayTime重试的时间 maxRetries最大重试次数 sendpartial如果为true任何收件人失败会将消息发送到给定的服务器 所以原来默认是 5天重试期第一次尝试4次小时前6小时内再增加两次然后在剩余时间内每6小时一次。 需要重试5天时间太长了 我们改为了1分钟后只重试1次 我测试这应该是最短的间隔了试了0.5minutes和1second好像没效果。 结果 接收退信就平时接收邮件一样就行了在inboxes文件夹 邮箱地址错误或访问不通测试的邮箱地址testtest.com系统退信的邮件内容 Hi. This is the James mail server at XT-PC. Im afraid I wasnt able to deliver your message to the following addresses. This is a permanent error; Ive given up. Sorry it didnt work out. Below I include the list of recipients and the reason why I was unable to deliver your message.Failed recipient(s): testtest.comError message: There are no DNS entries for the hostname test.com. I cannot determine where to send this message. 邮箱地址正确但是用户不存在测试的邮箱地址test1111163.com系统退信的邮件内容 Hi. This is the James mail server at XT-PC. Im afraid I wasnt able to deliver your message to the following addresses. This is a permanent error; Ive given up. Sorry it didnt work out. Below I include the list of recipients and the reason why I was unable to deliver your message.Failed recipient(s): test1111163.comError message: 550 User not found: test1111163.com 总结 缺点不能实时反馈发送的结果
http://www.sadfv.cn/news/124180/

相关文章:

  • 网站建设请示中国企业100强名单
  • 2017做哪些网站能致富网站怎么后台登陆
  • 创新的专业网站建设做外贸要看哪些网站
  • wap 网站开发wordpress安装很慢
  • 珠海中小企业网站建设甘肃省住房和城乡建设厅网站
  • 长春做个人网站做不了产品销售型企业网站有哪些
  • 徐州网站开发信息网站式的公司记录怎么做
  • 自贡网站制作企业手机网站建设联系方式
  • 网站建设维护内容郑州网络营销推广
  • 郑州网站制作价格做面料要建议网站
  • 西宁网站建设有限公司提交网站的入口地址
  • 网站维护一年多少费市场营销策略ppt
  • 医院网站建设报价表中国设计网app
  • 网站挂黑链赚钱网站到期是否能换服务商
  • 视频网站中滑动列表怎么做个人社保缴费怎么网上缴费
  • 坂田杨美企业网站建设网站调用字体库
  • 怎么介绍vue做的购物网站项目网站建设基础入门
  • 网站建设有哪种方式专业做邯郸网站优化
  • 做网站不会框架广东省建设厅
  • 做搜狗pc网站制作网页如何设置对齐方式
  • 深圳网站建设公司业务招聘做国外衣服的网站有哪些
  • 风格网站建设汕头网站制作多少钱
  • 网站托管公司哪家好网站制作网络推广方案
  • 中国广东手机网站建设南京江北新区核心区范围
  • html5门户网站模板wordpress 漫画网站
  • 网站 ftp初中生可做兼职的网站
  • 家具定制网站wordpress建站阿里云
  • 做视频网站一般多少钱杭州建站
  • 自己做一个网站难不难工作组赴河南协助
  • 网站的排名就是友情链接wordpress 主题开发教程