Solved

PHP send mail function

Posted on 2004-10-14
1
204 Views
Last Modified: 2008-03-06
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
Comment
Question by:Good_4_Nothing
1 Comment
 
LVL 1

Accepted Solution

by:
randyh360 earned 125 total points
ID: 12309477
<?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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to count occurrences of each item in an array.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question