Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => Mail

Date is empty in imap_fetchoverview result

the mail() function

Moderators: macek, egami, gesf

Date is empty in imap_fetchoverview result

Postby lazarantal » Mon Mar 11, 2013 1:39 am

Hi,

When I query an overview about a (Yahoo) mail message (with imap_fetchoverview), the date property is empty, but if I check the same mails in my online Yahoo mailbox, it has a sent date. Do you know why is this property empty in imap_fetchoverview result. Can I obtain this information from somewhere else. I could be an important detail that the message is a mime message.

Regards,
Tony
lazarantal
New php-forum User
New php-forum User
 
Posts: 4
Joined: Wed Mar 06, 2013 1:22 pm

Re: Date is empty in imap_fetchoverview result

Postby lazarantal » Sat Mar 16, 2013 8:23 am

Hi,

In the mean time I've found out, that I should use imap_headerinfo. The answer for this call has a property called "MailDate", which contains the information I seek.

Regards,
Tony
lazarantal
New php-forum User
New php-forum User
 
Posts: 4
Joined: Wed Mar 06, 2013 1:22 pm

Re: Date is empty in imap_fetchoverview result

Postby seandisanti » Mon Mar 18, 2013 2:47 pm

awesome, thanks for posting the fix in case it helps anyone else!
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => Mail

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.