Of recent we moved our mail server from POP to IMAP. Before then the POP server was sendind the form details through via email.

I have changed the mail() to imap_mail() but no mails are coming through now. Do you know what might be wrong.



imap_mail($email, $subject, $dear.$comments.$details1.$details2.$details3.$details4.$details5,$headers,"-fmyname@mydomain.com");

imap_mail("myname@mydomain.com", $subject2, $dear.$comments.$details1.$details2.$details3.$details4.$details5,$headers,"-fmyname@mydomain.com");


Thanks