Solved

PHP send mail function

Posted on 2004-10-14
1
178 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
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…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now