Apache2Triad Help, Support and Development Forum Index Apache2Triad Help, Support and Development
The apache2triad help , support and development forums
 

Email problem
Click here to go to the original topic

 
       Apache2Triad Help, Support and Development Forum Index -> E-mail
View previous topic :: View next topic  
Author Message
aliciamee



Joined: 05 Mar 2009
Posts: 2

Posted: Thu Mar 05, 2009 4:35 am    Post subject: Email problem  

I'm just started to use the apache2triad and i need to write a code that will send out email after the matching of the email address key in by the user in webpage with the address in database. But i am new in php so i try out some simple code as below:

<?php
// The message
$message = "Line 1\nLine 2\nLine 3";

// In case any of our lines are larger than 70 characters, we should use wordwrap()
$message = wordwrap($message, 70);

// Send
mail('mysite@yahoo.com', 'My Subject', $message);
echo" mail sends";
?>

I try to send to yahoo and hotmail but both in vain. i wonder why it didn't work or there are some settings that need to be done? I didn't change any setting inside apache2triad. The steps that i try to test the code are as below:
1. save the above code as test.php in C:\apache2triad\htdocs
2. run in browser by typing http://localhost/test.php.

If there is any settings need to be done, can guide me in steps? Hope can been replied soon. Thx!!!

i want to ask when install the apache2triad, the xmail is at the same time been setup and can be functioned or it needs to be done the setup manually?

I found some program like qksoft smtp server, are it easy to setup and use?

I nid to find the most simple ways so that i can done the projects within week.

Thank to anyone that lead me to the way that solve my problem. :roll:
Back to top  
 
       Apache2Triad Help, Support and Development Forum Index -> E-mail
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.13 © 2001, 2002 phpBB Group