Posted by forcescript on March 26, 2009
The PHP mail() Function
The PHP mail() function is used to send emails from inside a script.
Syntax
mail(to,subject,message,headers,parameters)
| Parameter |
Description |
| to |
Required. Specifies the receiver / receivers of the email |
| subject |
Required. Specifies the subject of the email. Note: This parameter cannot contain any newline characters |
| message |
Required. Defines the message to be sent. Each line should be separated with a LF (\n). Lines should not exceed 70 characters |
| headers |
Optional. Specifies additional headers, like From, Cc, and Bcc. The additional headers should be separated with a CRLF (\r\n) |
| parameters |
Optional. Specifies an additional parameter to the sendmail program |
Note: For the mail functions to be available, PHP requires an installed and working email system. The program to be used is defined by the configuration settings in the php.ini file.
PHP Simple E-Mail
The simplest way to send an email with PHP is to send a text email.
In the example below we first declare the variables ($to, $subject, $message, $from, $headers), then we use the variables in the mail() function to send an e-mail:
<?php
$to = "someone@example.com";
$subject = "Test mail";
$message = "Hello! This is a simple email message.";
$from = "someonelse@example.com";
$headers = "From: $from";
mail($to,$subject,$message,$headers);
echo "Mail Sent.";
?>
(more…)
Posted by forcescript on March 16, 2009
Are you looking to buy Adobe Photoshop? If so, this article will provide useful money-saving tips on how to research the Web to discover the best possible price on expensive software like Photoshop, and save you hundreds of dollars.
Posted by forcescript on March 15, 2009
Adobe Photoshop CS3 is quite possibly the best image editor there is, but it does cost upwards of $600. This article offers money-saving tips on how to find the best possible price for Photoshop, and save hundreds of dollars.
Posted by forcescript on March 14, 2009
With so many choices of registry fix download products on the market, it is confusing for the average person to choose the best registry repair tool for their needs. Prior to making the investment into an effective registry repair tool, it is a good idea to make sure that the computer problems you are suffering through are due to the Windows registry on your PC. If you are receiving a precise error that pinpoints a Windows registry problem, you have a jump start on getting your computer fixed.
Posted by forcescript on March 13, 2009
Not many people know what a disk defrag is; as a matter of fact most people who own a computer have no it is. This article is written to help you figure out how to run a disk defrag so that you can get your computer running as efficiently as possible.
Posted by forcescript on March 12, 2009
Most victims don’t even know they contracted spyware; until it’s too late. By then spyware is sitting in the driver’s seat, and you are just along for the ride.
Posted by forcescript on March 7, 2009
If you’re a TV buff like me, than read this, it will change your life. Today, anyone can watch TV on their PC or laptop, thanks to a breakthrough in digital TV technology. Satellite channels on PC have become so popular, that every day hundreds of people are switching from regular TV to Satellite TV that they can watch on their PC’s or laptops.
Posted by forcescript on March 6, 2009
There are several personal finance software I know but here is a list of factors I have discovered that make the GPS personal finance software the most outstanding one. This software offers four modules that basically answers the major areas that influence your personal finance status.
Posted by forcescript on March 5, 2009
So your computer is running like a slug, freezing up all the time, and taking forever to start up and shut down, and you have figured out that the registry is the problem, but you need a Windows registry tutorial in order to fix it. Here’s a bit of an overview as to how the registry repair process works. You will want to first perform a system restore.
Posted by forcescript on March 4, 2009
In order to fix corrupt registry on your PC, you’ve got the manual registry repair option or the safe and simple registry repair option. This article will quickly show you how to fix corrupt registry problems the easy way.