I'm am working on an wep interface for imap and pop3 servers, where an user can log on to any pop3/imap server and read and send mail.
For the send mail function, I am using imap_mail, where it is possible to apply a from address. But I dont know which from address I should apply. Is it possible somehow to find out which email address belongs to the mailbox I have opened with imap_open, and then use that email address as the from address, when I call imap_mail???
I am also having problems finding the from email address from mails I have received. I need those addresses for my reply function.
Right now I am using imap_fetchheader to show who the mail is from. It returns a string where the from address is shown with a lot of other texts. Can I somehow call a function, which will give me the from address whitout any other texts, so I can easily use it for the reply address.
Please help me someone.