I am using the following PHP code to send an email
$to = 'email@example.com';
$from = 'firstname.lastname@example.org';
$subject = "Subject";
$mailbody = "Content"
$mailforms = mail($to, $subject, $mailbody, $from);
Problem is , when i receive an email it has the "From address" set to "Apache" my sever default instead of "email@example.com".How can i resolve this problem?
Thanks in Advance.
$sender would be smthg like firstname.lastname@example.org
$mailclient - normally used to pass on that it was mailed from within a php script, but you can set anything here like "my cool mail tool"
$prior_1 would be 1, 2 or 3 with 1 being normal, 2 being medium and 3 being high
$prior_2 is only for microsoft - just have to write normal, medium or high there...
think that should do it