Go Back   Webmaster Malaysia Forum » Website Design & Development » Website Programming

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 20-12-2002, 05:57 AM
chungss's Avatar
New kid on the block
 
Join Date: Dec 2002
Location: Taiping
Posts: 2
Rep Power: 0
chungss is on a distinguished road
Send a message via ICQ to chungss
mail() help!

hie,

i hope u guys here can help me. i'm trying to use the mail() function to send out emails from my computer. i am running PHP 4.1.1 and Apache 2.0.43 on Win2K. i tried sending an email using the code below:

<?php
$email ="chungss@yahoo.com";
$subject="Test 123";
$message="Testing PHP mail";
mail($email, $subject, $message);
?>

after executing the code, i got the error:
Warning: Failed to Receive in E:\WEBPO\mail.php on line 5

i've read alot of articles/forums explaining the mail() function or setting up the php.ini file, including the ones inside this webmastermalaysia.com. here is my php.ini settings:

[mail function]
; For Win32 only.
SMTP = smtp.tm.net.my

; For Win32 only.
sendmail_from = xxx@tm.net.my

please help!!!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 31-12-2002, 05:16 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
Most mail servers will not allow relays, in order to block malicios spammers from using them as relay servers - i've try this smtp.tm.net.my, some time can/cannot.

Currently you are running win2k, if your IIS server on win2k running recent version, localhost should work since it comes with a built-in mail server. Refer to the online help for information on configuring it correctly (www.microsoft.com)
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 01-01-2003, 09:15 PM
chungss's Avatar
New kid on the block
 
Join Date: Dec 2002
Location: Taiping
Posts: 2
Rep Power: 0
chungss is on a distinguished road
Send a message via ICQ to chungss
Thanks for the help. But I would really like to make it work using the Apache web server for some reasons. I've recently installed a mail server, ArGoSoft Mail Server, and now the error I got is this:

Warning: Server Error in E:\WEBPO\mail.php on line 5

Am I getting closer to solving the problem? Or I'm still stucked with the STMP thingie?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-01-2003, 01:09 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
chungss,
be4 u using/try u'r mail server. Firstly you must setting the TCP services for XP.

Open your internet connection (IC) eg. dialup/lan. then right click choose properties.

after your IC propertise up, then select the advances tab.
then check the box internet connection firewall.
after that click the setting button below.
next step, on the services tab click add button.
fill the blank field.

Description:
MAIL SERVER SMTP/POP3

NAME/IP
YOU IP/PC NAME

EXternal PORT
25/110

Internal Port
25/110


* do two times SMTP and POP3/ for the best result restart the pc after finish!

good luck!~

note:
if u'r using build in mail server services, on the services tab just check STMP/IMAPS/POP3 services.
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 09-01-2003, 09:20 PM
Novice Webmaster
 
Join Date: Aug 2001
Posts: 15
Rep Power: 0
saupz is on a distinguished road
Send a message via Yahoo to saupz
kengkadang saya pun jadi gak camtue.. tak leh jugak nak run function mail() tue.. tapi bila dah tukar server baru.. baru la boleh run.. tgk jugak sendmail support ke tak kat server kita.. check dulu la.. ok
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 20-01-2003, 12:37 PM
hymns's Avatar
Senior Webmaster
 
Join Date: Nov 2001
Location: Johor
Posts: 769
Rep Power: 101
hymns is on a distinguished road
Send a message via ICQ to hymns Send a message via Yahoo to hymns
saupz,

masalah si chungss dekat local server. ngape plak nak tengok server dan tukar server...
__________________
I hate when:

vBulletin Message:
Sorry! The administrator has specified that users can only post one message every 60 seconds
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
FTP Mail rengge Webmaster Tools 1 06-04-2007 09:58 PM
E-Mail Backup, Email Defense, E-Mail Marketing! Get one for your website! starsearcher Web Hosting Offers 0 16-01-2006 12:03 PM
mail to yahoo el_idura Website Programming 8 13-10-2005 04:03 PM
Need a new e-mail? ckita Mamak Stall 13 31-12-2004 04:02 PM
Mail to SMS white_neck Website Programming 14 07-08-2004 07:55 PM


All times are GMT +8. The time now is 03:15 AM. Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0 vBulletin skin by ForumMonkeys.com.


WebmasterMalaysia.com is Proudly Hosted by Exabytes Semi Dedicated Server.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61