Hi I am confused with object handling in imap functions
I want to create nice mail function which shows me who and from is sent me a mail
The problem is ...
I ve made class named meil
created connecting function
and mail reading function
function kiri($number) {
$header=imap_header($this->link, $number);
$this->Kellelt = $header->from;
$this->KirjaSisu=@imap_fetchbody($this->link, $number, 1);
}
when I am not using classes and functions I can echo $Kellelt and it prints me out who sent me this mail
I am bringing this out like:
$a=new meil;
$a->mailconnect();
$a->kiri(1);
printf ($a->Kellelt);
printf ($a->KirjaSisu);
$a->Kellelt returns me "Array"!!!
$a->KirjaSisu returns what I need
I am stucked and confused...
thanx