Reply
Testing Sendmail on offline PHP/MySQL/Apache set up
Old 07-21-2004, 01:30 AM Testing Sendmail on offline PHP/MySQL/Apache set up
Novice Talker

Posts: 9
Hi. I've set up PHP, MySql, Apache and PHPMyAdmin running on Windows XP Home Edition. Everything works fine and allows me to test my PHP sites before uploading to the server. But I cannot test anything that requires e-mail sending. I continually get an error such as:

Warning: mail(): "sendmail_from" not set in php.ini or custom "From:" header missing in c:\Program Files\Apache Group\Apache2\htdocs\PHP_Mailing_List2\user_transa ct.php on line 78

Warning: Cannot modify header information - headers already sent by (output started at c:\Program Files\Apache Group\Apache2\htdocs\PHP_Mailing_List2\user_transa ct.php:78) in c:\Program Files\Apache Group\Apache2\htdocs\PHP_Mailing_List2\user_transa ct.php on line 136

I HAVE set up the sendmail_from in php.ini.

Is it possible to set up an e-mail relay offline or will I have to keep uploading files to a remote server to test the e-mail sending? It's a real pain because I have to keep changing the Config file seetings each time I upload.
Funky Monk is offline
Reply With Quote
View Public Profile Visit Funky Monk's homepage!
 
When You Register, These Ads Go Away!
Old 07-21-2004, 02:13 AM
Novice Talker

Posts: 9
Update:

I copied the php.ini file to my C:/php folder. Now I get an error message:

Warning: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() in c:\Program Files\Apache Group\Apache2\htdocs\PHP_Mailing_List2\user_transa ct.php on line 78

I've searched in the php.ini file and can see no reference to smtp_port. I've set the Mail setings as:

[mail function]
; For Win32 only.
SMTP = localhost

; For Win32 only.
sendmail_from = ****@**********

I'm not sure how you do what it is suggested, ie. "or use ini_set() in c:\Program Files\Apache Group\Apache2\htdocs\PHP_Mailing_List2\user_transa ct.php on line 78". How do I do that?

But really what I want to do is get my Development Server properly set up so that I can just get on with testing each application as it it without having to modify the code. Thanks.
Funky Monk is offline
Reply With Quote
View Public Profile Visit Funky Monk's homepage!
 
Reply     « Reply to Testing Sendmail on offline PHP/MySQL/Apache set up
 

Thread Tools

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off


Webmaster Resources Marketplace:
Software Development Company | Webhosting.UK.com | Text Link Brokers 


   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10935 seconds with 12 queries