|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
mail function
I have problem with my mail function. I recently installed Apache so I don't think I've configured it properly. I used to have omnihttpd and the script I wrote worked fine. So could someone please help me configure Apache properly so the mail function works? Thanks.
Tom ![]() |
|
#2
|
||||
|
||||
|
cmon ppl.
how many of u run apache and use the mail function?? Simple, but how do you configure the smtp? |
|
#3
|
||||
|
||||
|
Apache has nothing to do with the mail function. By default, php is configured to pass off mail requests to sendmail (assuming you're on a linux platform). If you're mail is not being sent, you need to investigate your MTA server. If you're using a hosting service, however, you can easily contact them to confirm whether or not the MTA server is up and running. And if you use a hosting service and they give you shell access (and you're using sendmail), you can run the following to see if things are fine with the MTA (before having to contact them)
/usr/sbin/sendmail someone@someplace.com < file_that_has_text.txt If you get the message, then you know something's up with your script. If not, then there's something up with the MTA. In general, if you find you have a problem with your mail server you'll probably be better off posting in the mail server forum. Good luck. |
|
#4
|
||||
|
||||
|
No im on winxp.
im pretty sure it just has something to do with the php.ini file. How to I configure that for say 'smtp.tiscali.co.uk' using 't.hope@tiscali.co.uk'?? |
|
#5
|
|||
|
|||
|
mail from winxp
I had the same problem recently, i think however i managed to solve it by installing a mail server, i used hamster which seemed to install very easily. You can download hamster here: URL It's free too. Then once you've installed it, just find out the SMTP server settings and change ur php.ini settings to conform, for me it worked fine leaving it at localhost. Hope that helps.
|
|
#6
|
||||
|
||||
|
No. Sorry, maybe I din't explain.
php.ini file at present: PHP Code:
All I want to know is what to add to that to use my ISP's mail server : smtp.tiscali.co.uk..... ....and my email address : t.hope@tiscali.co.uk Where, and what do I put into the file above? |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > PHP Development > mail function |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|