Solved

PHP send mail function

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

Salesforce Has Never Been Easier

Improve and reinforce salesforce training & adoption using WalkMe's digital adoption platform. Start saving on costly employee training by creating fast intuitive Walk-Thrus for Salesforce. Claim your Free Account Now

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…
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.

626 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