Sending Emails in PHP
PHP can be used to send emails from a web application. The built-in mail function can be used to send emails using SMTP or sendmail.
Example:
perl
$to = "john@example.com";
$subject = "Test email";
$message = "This is a test email.";
$headers = "From: webmaster@example.com";
mail($to, $subject, $message, $headers);
No comments:
Post a Comment