我有邮件,我需要通过
PHP imap函数获取正文,然后将其存储在数据库中.这些邮件来自响应系统的发送.我使用此代码来获取电子邮件的正文
$bodyText = imap_fetchbody($mbox,$v,1.2);
if(!strlen($bodyText)>0){
$bodyText = imap_fetchbody($mbox,$v,1);
}
这完美但也包括原始邮件正文,有没有办法只获得回复.
整个电子邮件正文看起来像这样
**This is a test
--
Kind Regards,
-----Original Message-----
From: -------------
To:--------------------------
Subject: You have received a reply to your enquiry
New System
Date: Tue, 5 Jul 2011 16:24:28 +0200
Good day,
You have received the following reply to an enquiry you made
-------------------------------------------------------------------------------------------------
test3
--------------------------------------------------------------------------------------------------
To reply to this comment please click on the Reply To button and add the message you wish to send.**
有没有办法只获取消息正文而没有使用IMAP函数或其他PHP函数的ORIGINAL MESSAGE?