I'm actually using the PHP code below to send a mail at my "@me" address:
<?php
$to = 'myName@me.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: webmaster@example.com' . "\r\n" .
'Reply-To: webmaster@example.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();
mail($to, $subject, $message, $headers);
?>
It works fine with Gmail but I'm not receiving any mail when trying to use with my iCloud mail address...any idea of how to make this work?