| | |
Send email from PHP
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
$fromEmail = "admin@domain.com";
$subject = "Welcome";
$body = "Hi,\n\nYou have visited the page.";
$sent=mail($Email, $subject, $body, $from) ;
if($sent)
{
echo("<p>Message successfully sent!</p>");
} else {
echo("<p>Message delivery failed...</p>");
} Hmm, maybe the PEAR mail extensions weren't installed. Do a page with just this code:
If you still get that error, then you need to manually install the mail extensions
php Syntax (Toggle Plain Text)
<?php include "Mail.php"; ?>
If you still get that error, then you need to manually install the mail extensions
•
•
Join Date: Jul 2008
Posts: 21
Reputation:
Solved Threads: 0
Hi scru,
Yeah, I'm in trouble of install the PEAR mail extensions. I download the file down and get into the commnd line. I use this command but it doesn't seem to do anything.
Could you please show me hwo to install it manually.
Thank you.
Enz
Yeah, I'm in trouble of install the PEAR mail extensions. I download the file down and get into the commnd line. I use this command but it doesn't seem to do anything.
PHP Syntax (Toggle Plain Text)
C:\PHP\pear install -o mail-1.1.14
Could you please show me hwo to install it manually.
Thank you.
Enz
![]() |
Similar Threads
- AJAX Send Email Form with prototype and PHP (JavaScript / DHTML / AJAX)
- Automatically send email in php without user interaction (PHP)
- Send an Email in PHP (PHP)
- Send email through php? (PHP)
- Need Help Making a Form send to an email using PHP (PHP)
- PHP Sendmail Tutorial (PHP)
- Using PHP to Send Email to a single DB list member every 24 hrs. (PHP)
- PHP Email (PHP)
Other Threads in the PHP Forum
- Previous Thread: Mail Server run in local host but cant use Mail() Function
- Next Thread: Auto button when user hits the Enter key
| Thread Tools | Search this Thread |
ajax apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion regex remote script search server session sessions sms smtp soap source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; xml youtube






