mail()

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

He's already tried setting up his smtp to his isp cos he doesn't run his own smtp....
User avatar
C_Calav
Forum Contributor
Posts: 395
Joined: Wed Jun 02, 2004 10:55 pm
Location: New Zealand

Post by C_Calav »

hey,

it is C:\WINNT\php.ini im just having a look around. what am i looking out for exactly?

thanx
User avatar
C_Calav
Forum Contributor
Posts: 395
Joined: Wed Jun 02, 2004 10:55 pm
Location: New Zealand

Post by C_Calav »

im at work, and we do have a smtp server here.

is that any help?
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

It appears that your ini file hasn't been edited correctly. Does it still show the settings you defined when you go and look at it again?

If it does... carry on reading the next lines below it and make sure SMTP= does not appear anywhere again and sendmail_from= doesn't either because it could just be that you have them getting wiped out by blank values further on in the ini. What platform are you on and what is your http server?

NOTE: This wouldn't be advisable but should work... if you go the bottom of the [mail function] section and just add the last 3 lines as
SMTP=your.smtpserver.com
smtp_port=25
sendmail_from=youremail@yourdoamin.com
That should just overwrite any that were defined (or blank) above it.

If that works I'd have a look and see where the problem is :-)

Hope you get there in the end :wink:
Post Reply