Making an educated guess, try these:
1. Send an email from peter.kipkoech@gmail.com to peter@companydomain.co.ke, confirm that that works.
2. Try 1 above with another domain if it does not work
3. Try sending that email as an HTML email with additional headers $headers  = 'MIME-Version: 1.0' . "\r\n"; and $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; See the php manual for more details


On Tue, Nov 10, 2009 at 5:56 PM, Peter Kip <peter.kipkoech@gmail.com> wrote:
Peter,

It actually confirms it as sent, with absolutely no errors. But I guess the problem has eveything to do with the $to values. since when I use, peter.kipkoech@gmail.com as the value, it sends it successfully, I actually receive it. But if the value of the $to is anything to do with POP based mail, i.e peter@companydomain.co.ke...it still confirms it as send, but I don't receive the message in my inbox, even in the spam folders, I don't know whether there's a tweak one has to invoke or something?!



On Tue, Nov 10, 2009 at 5:29 PM, Peter Karunyu <pkarunyu@gmail.com> wrote:
At which point are you getting the errors? At $mailit = mail($to,$subject,$message,$headers); or the mail server later returns a delivery error?


On Tue, Nov 10, 2009 at 4:34 PM, Peter Kip <peter.kipkoech@gmail.com> wrote:
Guys,

I'm experiencing some problem with the mail() function. I have a feedback form I want to incorporate into the site, it is working fine with the commercial mail platforms like Gmail, Yahoo...., but it can't send mail when the values of the $to variable are POP based mail systems.

This is the sample code.

<?php

$yourName = 'Online Commercial ';
$yourEmail = 'peter.koech@gmail.com, peter.kipkoech@gmail.com';

$yourSubject = 'Lorem Lipsum';
$referringPage = 'http://www.standardmedia.co.ke';

function cleanPosUrl ($str) {
return stripslashes($str);
}
    if ( isset($_POST['sendContactEmail']) )
    {
    $to = $yourEmail;
    $subject = $yourSubject.': '.$_POST['posRegard'];
    $message = cleanPosUrl($_POST['posText']);
    $headers = "From: ".cleanPosUrl($_POST['posName'])." <".$_POST['posEmail'].">\r\n";
    $headers .= 'To: '.$yourName.' <'.$yourEmail.'>'."\r\n";
    $mailit = mail($to,$subject,$message,$headers);
        if ( @$mailit ) {
        header('Location: '.$referringPage.'?success=true');
        }
        else {
        header('Location: '.$referringPage.'?error=true');
        }
    }
?>

--
Nothing’s impossible the impossible just takes a little longer.

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
Other lists
-------------
Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce
Science:  http://lists.my.co.ke/cgi-bin/mailman/listinfo/science
kazi:     http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general


_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
Other lists
-------------
Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce
Science:  http://lists.my.co.ke/cgi-bin/mailman/listinfo/science
kazi:     http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general



--
Nothing’s impossible the impossible just takes a little longer.

_______________________________________________
Skunkworks mailing list
Skunkworks@lists.my.co.ke
http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks
------------
Skunkworks Rules
http://my.co.ke/phpbb/viewtopic.php?f=24&t=94
------------
Other services @ http://my.co.ke
Other lists
-------------
Announce: http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks-announce
Science:  http://lists.my.co.ke/cgi-bin/mailman/listinfo/science
kazi:     http://lists.my.co.ke/cgi-bin/mailman/admin/kazi/general