I am using imap_headers in a php script as follows:
$headers = imap_headers($mail);
I am then looping through the header of each message using:
for ($n=1; $n<=count($headers); $n++)
This is only returning a certain amount of characters from the header, and thus the subject is cut short.
I want to return the full subject for each message.
I understand there is a parameter "subject_length" that can be used in conjunction with imap_headers, but I dont know how to implement it.
can someone help?