使用PHP反弹邮件处理? [英] Bounce Email handling with PHP?

查看:167
本文介绍了使用PHP反弹邮件处理?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这是我的方案:

我有2个电子邮件帐户:admin@domain.com和bounce@domain.com。

I have 2 email accounts: admin@domain.com and bounce@domain.com.

我想通过admin@domain.com向所有用户发送电子邮件,然后回复bounce@domain.com(直到这里,我的PHP脚本可以处理它)。

I want to send email to all my users with admin@domain.com but then "reply to" bounce@domain.com (until here, my PHP script can handle it).

何时发送电子邮件,发送到bounce@domain.com,错误信息可能是553(不存在的电子邮件...)等。

When, the email can't be sent, it's sent to bounce@domain.com, the error message could be 553 (non existent email ...) etc.

我的问题是:如何通过处理脚本将所有弹跳电子邮件(无法发送电子邮件)引导到bounce@domain.com以检查跳出错误代码?

My question is: How do I direct all those bounce emails (couldn't-sent emails) to bounce@domain.com through a handling script to check for the bounce error codes?

处理脚本应该使用什么编程语言?

What programming language should I be using for the "handling script"?

处理脚本会是什么样子?你可以给一个样本吗?

What would the "handling script" look like? Can you give a sample?

换句话说:

我应该遵循什么程序处理退回电子邮件?

推荐答案

最好的场景是能够对跳出的类型进行分类:硬...

The best scenario is be able to classify the type of bounce: soft, hard...

我们使用的是 BounceStudio 。你需要编译它并添加php库...根本不难。一旦我们检测到

what we use is BounceStudio. You need to compile it and add the php libraries... not hard at all. You have the free and paid version of that product

Email-Bounce-Boogie-Bounce-API-Categories.asp?sReturnURL = / Products / Linux / Default.asprel =noreferrer>反弹类型我们使用PEAR :: MAIL :: MIME来搜索我们以前在电子邮件中添加的自定义标头可以说:

once we detect the kind of bounce we use PEAR::MAIL::MIME to search for custom headers that we added previously to the email, lets say:

X-user-id: XXXXX
X-campaign-id: YYYYYY 
X-recipient-id: SSSSSSSSS

这样我们可以知道我们发送电子邮件的真实收件人。

in this way we can know the real recipient that we sent the email to.

希望这有助于您!所以你可以帮助我达到500点:P

hope this help you! so you can help me to get to the 500 points :P

这篇关于使用PHP反弹邮件处理?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆