Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

PHP send mail function

Posted on 2004-10-14
1
Medium Priority
?
226 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 1

Accepted Solution

by:
randyh360 earned 375 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

715 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