Saturday, March 3, 2007

Send emails from anyone to anyone - simply magic

Yes! you can actually send emails from anyone to anyone! You can send emails to people from their own email address and you won't have to break into their email address account. It's actually very simple, and I'm going to tell you how it's done.
Be aware that this is not exactly legal. I'm just saying that it's possible...but....it's not legal....so....I don't encourage you to do it. The person that you are sending emails to.....will receive it from the email that you want it to receive.

There is a function in PHP....the mail function. That is used to send e-mails to the people on your site.

In order for PHP to work on your computer, you need a Apache server...witch can be set up by downloading XAMPP (that is very easy to install).

Install xampp fom the folowing link: http://www.apachefriends.org/en/xampp.html .

Then, in order to send a E-mail, you must create a PHP file exactly like this:

< ?php
$to = "someone@domain.com";
$subject = "The subject of the message";
$message = "The message you want to send.";
$from = "someone@domain
.com";

$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Your E-mail Has been sent to ".$to." from ".$from;
? >

You just need to modify the content between the quotes of

$to
$from
$message
$subject

And your mail is ready!
After you run it, you will see a message that says:
Your E-mail Has been sent to recipient_mail from sender_email 
Save the file and run it. You can test by sending an e-mail from yourself...to yourself.
But be aware! sending emails to people from false email addresses is not legal!
I do not encourage you to do this! I'm just saying that it's possible and I'm telling you how the e-mail function works in PHP.

Thanks 4 reading,
Cy21