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

建设网站一般要多钱做外贸 英文网站

建设网站一般要多钱,做外贸 英文网站,html 公司网站 代码下载,郑州男科医院排名哪家医院好项目场景#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.pierceye.com/news/940952/

相关文章:

  • 互联网做网站怎么赚钱WordPress副标题不显示
  • 好的网站域名网站运营推广怎做
  • 巴适网站建设wordpress上传与安装包
  • 网站备案不关站wordpress网
  • 中国佛山手机网站建设十大互联网公司排名
  • 手把手指导做网站wordpress 熊掌号插件
  • 宁波网站建设方案报价湖州企业做网站
  • 优化 导航网站百度官网网站首页
  • 各大网站大全河北网站建设seo优化制作设计
  • 做照片的网站前端开发和后端开发
  • 谁能低价做网站支付接口泰州企业自助建站系统
  • 徐州 网站建设辽阳建设网站
  • PHP MySQL 网站开发实例单页应用网站
  • 制作网站的步骤关于企业网站建设的相关思考
  • 统计局网站建设情况ppt设计网站
  • 中石化第四建设公司 网站哪个软件可以看街道实景
  • 郑州做网站哪个平台好全国网站备案
  • 个人网站空间申请html5 网站开发 适配
  • 建站行业如何快速成第一单js制作网页游戏
  • 建立网站后怎么维护做网站自己租服务器还是网络公司
  • 建网站赚钱wordpress 公众号主题
  • 亚马逊网站建设的意义海西高端网站建设
  • 建设静态网站淘宝客怎么建设网站
  • wordpress网站外包浙江省建设厅新网站人员无法查询
  • 广州天与地网站建设石家庄快速建站公司
  • 汕头投资建设总公司网站专做PPP项目网站
  • 双语教学示范课程建设项目网站建设通网站上线
  • 电子商务网站域名注册要求南京电商设计
  • 网站左侧导航设计国内免费服务器地址
  • 怎样上网站dns解析不了图片墙网站源码