Hi,
I tried using telnet to send mail and its working, i would like to send mail using php mail()
function.
mail($to, $subject, $body, $headers);
whenever i run the script in browser, i could not able to receive mail, but no errrors.
when i open the /var/mail/{myfilename}
From www-data@company.ca Fri Oct 27 10:37:25 2006
Return-path: <www-data@company.ca>
Envelope-to: myusername@company.ca
Received: from www-data by mailservername.company.ca with local (Exim 3.36 #1 (Debian))
id 1GdSpp-0004kp-00
for <myusername@company.ca>; Fri, 27 Oct 2006 10:37:25 -0400
To: myusername@company.ca
Subject: Hi test subject
MIME-Version: 1.0
Content-type: text/plain; charset=iso-8859-1
From:myusername@company.ca
Message-Id: <E1GdSpp-0004kp-00@mailservername.company.ca>
Sender: www-data <www-data@company.ca>
Date: Fri, 27 Oct 2006 10:37:25 -0400
Testing Email with php
Is there anything do i need to configure in /etc/exim/exim.conf
will you please help me out of that.
Thanks
rosy