Apache2Triad Help, Support and Development Forum Index Search Profile Log in to check your private messages Log in Register Memberlist Attachments Statistics Crew/Ranks Archive
 Email problem
Post new topic Reply to topic
Author Message

Joined: 05 Mar 2009
Posts: 2

PostPosted: Thu Mar 05, 2009 4:35 am Reply with quoteBack to top

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:

// 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. Rolling Eyes
View user's profileSend private message
Display posts from previous:      
Post new topic Reply to topic

 Jump to:   

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum
Powered by phpBB © 2001, 2002 phpBB Group :: FI Theme
All times are GMT