Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 229
  • Last Modified:

PHP send mail function

how do i send mail using php script and connect to my hotmail
for example, i have a email address test@test.com
and i wanted to use php to connect to test.com and send email to anoter person, is this posible?
i hope u all can provide me some sample code  thanks a lot
0
Good_4_Nothing
Asked:
Good_4_Nothing
1 Solution
 
randyh360Commented:
<?php

mail("someone@test.com", "Message Subject", $message,
     "From: test@test.com\r\n" .
     "Reply-To: test@test.com\r\n" .
     "X-Mailer: PHP/" . phpversion());

?>

Check out: http://us2.php.net/manual/en/function.mail.php
0

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now