0

PHPMailer-BHM で使用するために、存在しないアドレスの gmail バウンスに一致する正規表現を作成しようとしています。

メッセージはこちら

<majsha77665251001@gmail.com>: host
gmail-smtp-in-v4v6.l.google.com[173.194.70.26] said: 550-5.1.1 The email
account that you tried to reach does not exist. Please try 550-5.1.1
double-checking the recipient's email address for typos or 550-5.1.1
unnecessary spaces. Learn more at 550 5.1.1
http://support.google.com/mail/bin/answer.py?answer=6596 n7si4762785wiy.46
(in reply to RCPT TO command)

メールとメッセージ「あなたが到達しようとしたメールアカウントは存在しません」、または少なくとも「到達しようとしたアカウントは存在しません」と一致するルールが必要です。

4

1 に答える 1

0

私は自分でそれを見つけました.phpコード:

preg_match ("/<(\S+@\S+\w)>.*\n?.*\n?.*account that you tried to reach does not exist/i",$body,$match)
于 2012-07-11T15:30:28.533 に答える