Log in

View Full Version : [localhost] Send Email



sysout
04-16-2009, 09:36 AM
Guyz, I really really need your help.

I wanna build a website with PHP and Oracle, but I don't know how to make a hosting for my site at my own office.

The second one is :
I wanna send email using the mail() function from my localhost, but it seems not working at all.
can anybody help me?

I've already browsing everywhere, but I don't find any solution for this stuff

Snookerman
04-16-2009, 09:42 AM
Google around for localhost email servers, here's one I found: http://www.phpeasystep.com/phptu/23.html (http://www.phpeasystep.com/phptu/23.html)

sysout
04-16-2009, 09:48 AM
I've tried this one too, but it's only can send email to me@localhost (can't send to others)

I really appreciate your help palz, any suggestion bro?

Snookerman
04-16-2009, 10:05 AM
Oh ok, how about this one: http://www.softstack.com/freesmtp.html (http://www.softstack.com/freesmtp.html)

sysout
04-16-2009, 11:54 AM
I can't download this stuff.. :(

sysout
04-17-2009, 12:51 AM
can anyone download that ?
I really need your help bro

sysout
04-17-2009, 02:37 AM
finally, I can download this stuff palz..

I have an error too :

Warning: mail() [function.mail]: SMTP server response: 550 Invalid recipient: bungkusan88@yahoo.com in F:\PHP\mail.php on line 9

Fatal error: Maximum execution time of 60 seconds exceeded in F:\PHP\mail.php on line 9

The code is like this :

<?php
$to = 'bungkusan88@yahoo.com';
$subject = 'the subject';
$message = 'hello';
$headers = 'From: support@bungkusan.com' . "\r\n" .
'Reply-To: support@bungkusan.com' . "\r\n" .
'X-Mailer: PHP/' . phpversion();

$sentmail = mail($to, $subject, $message, $headers);

// if your email succesfully sent
if($sentmail){
echo "Email Has Been Sent .";
}
else {
echo "Cannot Send Email ";
}

?>