krayziehustler Posted June 27, 2006 Report Share Posted June 27, 2006 i always get and error asking about SMTP and SMTP Port and no matter what i change in the php.ini i cant use the mail function, any help would be very much appreciated Quote Link to comment Share on other sites More sharing options...
Ric Posted June 27, 2006 Report Share Posted June 27, 2006 i always get and error asking about SMTP and SMTP Port and no matter what i change in the php.ini i cant use the mail function, any help would be very much appreciated I have seen this problem raised on a number of forums what you are looking for is an SMPT server. I assume you are either learning PHP or want to test your programs locally. I am in the process of writing a guide purely to cover this situation using UniServer. This will be out in about a week or two. However if you need the info more quickly and have the experience take a look at this page http://www.burrotech.com/om_steps5.php . They have produced an ideal solution to this problem and for free. To run something like this: <?php $mailaddress = "admin1@fred.com"; $mailsubject = "Another test"; $mailbody = "Hello, world! Again"; mail($mailaddress, $mailsubject, $mailbody);?> From a clean install of Office Mail.Leave all the defaults as they are and perform the next two steps: 1) Click Users: Set up a user named admin1 password admin12) Click on local distribution and + (add) enter: Mail address: admin1@fred.com To user enter: admin1 Thats all you need to do, run your PHP program and the mail will be received in Office Mail. Check it out if Office-Mail not displayed click its icon bottom right in the system tray. All the best Quote Link to comment Share on other sites More sharing options...
MrX Posted June 28, 2006 Report Share Posted June 28, 2006 What have you set for the SMTP, sendmail_from and sendmail_path directives in your php.ini, have you commented any of them? If I remember correctly, you should have sendmail_path commented if you're using Windows. Quote Link to comment Share on other sites More sharing options...
krayziehustler Posted June 28, 2006 Author Report Share Posted June 28, 2006 you guys ROCK!!!!!!!!!!!!!!!!!!!!!! for some reason, my php.ini file had the sendmail path un commented so once i commented it I stopped recieveing the SMTP error, and with OFFICE MAIL I am now receiving the mail I sent duringm y local code testing.......... much thanks!!!!!!!!! Quote Link to comment Share on other sites More sharing options...
MrX Posted June 28, 2006 Report Share Posted June 28, 2006 No problem. I wonder if Fake Sendmail mentioned in this thread by Olajide works with sendmail_path, considering php.ini labels that as "for UNIX only". Quote Link to comment Share on other sites More sharing options...
Ric Posted June 29, 2006 Report Share Posted June 29, 2006 "I am in the process of writing a guide purely to cover this situation using UniServer. " Finished can be found here: http://www.center.uniformserver.com/ Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted July 9, 2006 Report Share Posted July 9, 2006 (edited) Yes, Fake sendmail works with the sendmail_path function in the php.ini.... Edited July 9, 2006 by olajideolaolorun Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
MrX Posted July 10, 2006 Report Share Posted July 10, 2006 A while ago... (14:40:36) Alley^Away: Do you know if sendmail_path works on Windows with Fake Sendmail?(14:40:56) no idea(14:41:07) fake sendmail as hooking it up with win's own?(14:42:32) No(14:42:48) http://glob.com.au/sendmail/(14:43:17) ok, not the slightest(14:43:35) Ok (14:48:20) oh, this even requires a real smtp(14:48:44) isn't there a small real smtp forwarder exe for win on SF somewhere? If anyone finds that "small real smtp forwarder exe for win" AlleyKat was talking about, please inform me, here or in a private message Quote Link to comment Share on other sites More sharing options...
olajideolaolorun Posted July 11, 2006 Report Share Posted July 11, 2006 Quote Best Regards Olajide Olaolorun The Uniform Server Development Team Link to comment Share on other sites More sharing options...
AlleyKat Posted December 6, 2006 Report Share Posted December 6, 2006 Damn, dude, you should have asked when I was online at some point... http://www.blat.net/ (Blat)http://emailrelay.sourceforge.net/ (possible other like it) I don't think it was either of these I've run across at some point, but I'm on the other hand quite sure theres a link to it here in the forums somewhere... Quote Link to comment Share on other sites More sharing options...
Ric Posted December 6, 2006 Report Share Posted December 6, 2006 Hi AlleyCat (Again) Seems as if I am chasing you around today not intended. Taken a quick look at the above link found the material interesting well documented and worth a read. I like alternatives and this is another good one to add to anyone’s bag of goodies. My write-up of Mercury is similar in that it performs E-Mail relaying however what may be more significant is code size EmailRelay is smaller than Mercury which weighs in at around 4Mb with all components. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.