By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,686 Members | 1,603 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,686 IT Pros & Developers. It's quick & easy.

Unable to receive FROM field in mail header

realin
100+
P: 254
Hiya all,

I m using pop3.class.php5.inc class from php classes

I am using their simple script, but i cant really get the sender information in the headers. Wht can be the error, i am able to receive the from field but not able to get the recieve field.

Please take a look at the header given below, i have remove EMAIL address from the TO field for security reasons.
Expand|Select|Wrap|Line Numbers
  1. Received: (qmail 16283 invoked from network); 9 May 2008 06:27:22 -0000 Received: from unknown (HELO p3presmtp01-12.prod.phx3.secureserver.net) ([208.109.80.161]) (envelope-sender ) by smtp31.prod.mesa1.secureserver.net (qmail-1.03) with SMTP for ; 9 May 2008 06:27:22 -0000 Received: (qmail 7976 invoked from network); 9 May 2008 06:27:22 -0000 Received: from wx-out-0506.google.com ([66.249.82.226]) (envelope-sender ) by p3presmtp01-12.prod.phx3.secureserver.net (qmail-ldap-1.03) with SMTP for ; 9 May 2008 06:27:22 -0000 Received: by wx-out-0506.google.com with SMTP id s12so938128wxc.26 for ; Thu, 08 May 2008 23:27:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type; bh=UtNjFGquQvPLFsIZfIHNeGdvaoVE7x+XMT8lZEnQJqY=; b=X2vu3HOUCXY/9uh82NDJxy0MIPB4jzjV8YYwCoaxf9WtTUb4mElOL6frbXNt/Bl6cxyRUpcyR+r2LQwf9Z8RaQVrQ1IjGKwLHT+aGFZWrZxaZDd8+wzNPECCb5E8Wh2kprqsSXrn614cUeIqpuD3Yn9Tl5gdi99LFViEnL5Gx0U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=S+65zCL/3CXUE9FUPMCxXJN2BRCbZzzByCgDAvxjFgMXLcmDkX3dunmRFQdhLtxHEm3iwPsX73ErOvuXsvon9/+65efTc2HuIE5uQtMpSNCvra4nd9fMXawhXtvyNcW4yPeJPYlef+B4Zvzbztv2CXv3Bd3mAzVO8pBrVwPTDS8= Received: by 10.70.80.14 with SMTP id d14mr5423008wxb.12.1210314438734; Thu, 08 May 2008 23:27:18 -0700 (PDT) Received: by 10.70.36.8 with HTTP; Thu, 8 May 2008 23:27:18 -0700 (PDT) Message-ID: <1573edbc0805082327t793aa441uc28b8228c84e7902@mail.gmail.com> Date: Fri, 9 May 2008 11:57:18 +0530 From: Realin To: removed@for_security_reason.com Subject: test MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_969_19695754.1210314438718" X-Nonspam: None .
Please help its urgent, Ronald(ronverdonk) i am looking for u mayne :P
May 9 '08 #1
Share this Question
Share on Google+
1 Reply


realin
100+
P: 254
well i have found the solution
i want to share with everyone who lands up here
you have to include the whole output in <pre> </pre> tags :P
or you can see the email addresses in teh source code :P

Now what i am looking for is a better way to extract a email address from these headers, instead of using regexp or string functions

any idea ?
May 9 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.