PHP Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming LanguagesPHP Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 17th, 2003, 02:26 PM
tom-hope's Avatar
tom-hope tom-hope is offline
God Among Men
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 160 tom-hope User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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

Reply With Quote
  #2  
Old July 17th, 2003, 03:45 PM
tom-hope's Avatar
tom-hope tom-hope is offline
God Among Men
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 160 tom-hope User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
cmon ppl.

how many of u run apache and use the mail function?? Simple, but how do you configure the smtp?

Reply With Quote
  #3  
Old July 17th, 2003, 03:54 PM
colpaarm's Avatar
colpaarm colpaarm is offline
300lb Bench!
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Aug 2001
Location: New York
Posts: 2,198 colpaarm User rank is Sergeant (500 - 2000 Reputation Level)colpaarm User rank is Sergeant (500 - 2000 Reputation Level)colpaarm User rank is Sergeant (500 - 2000 Reputation Level)colpaarm User rank is Sergeant (500 - 2000 Reputation Level)colpaarm User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 4 Days 6 h 31 m 13 sec
Reputation Power: 18
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.

Reply With Quote
  #4  
Old July 17th, 2003, 04:04 PM
tom-hope's Avatar
tom-hope tom-hope is offline
God Among Men
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 160 tom-hope User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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'??

Reply With Quote
  #5  
Old July 17th, 2003, 04:52 PM
lauraimrie lauraimrie is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 1 lauraimrie User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
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.

Reply With Quote
  #6  
Old July 18th, 2003, 05:02 AM
tom-hope's Avatar
tom-hope tom-hope is offline
God Among Men
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 160 tom-hope User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
No. Sorry, maybe I din't explain.

php.ini file at present:
PHP Code:
php.ini for PEAR tests
include_path

[
mail function]
upload_tmp_dir C:PHPuploadtemp  temporary directory for HTTP uploaded files (will use system default if not specified)
[
Session]
[
PHP


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?

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming LanguagesPHP Development > mail function


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT