FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » Using SMTP server
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Using SMTP server [message #160635] Thu, 08 October 2009 19:55 Go to next message
byron is currently offline  byron
Messages: 9
Registered: October 2009
Karma: 0
Junior Member
In the Admin Control Panel, if you set Use SMTP To Send E-mail to Yes, then a typo that exists in many PHP files causes errors when trying to send emails.

The typo occurs in:
  $smtp_svr = $_SERVER["SERVER_NAME"];
  if ($smtp_srv == 'localhost' || $smtp_svr == '127.0.0.1') {
     $smtp_srv = 'FUDforum SMTP server';
  }

  $this->wts(($es ? 'EHLO ' : 'HELO ').$smtp_srv);
Notice that it defines $smtp_svr but tries to use $smtp_srv 3 times.

In my environment, I changed them all to $smtp_srv. And this problem exists in many files, including email.php, pmsg.php, post.php, etc.
Re: Using SMTP server [message #160636 is a reply to message #160635] Thu, 08 October 2009 20:11 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3771
Registered: December 2004
Karma: 28
Senior Member
Administrator
Core Developer
Good catch. Here is the fix: http://cvs.prohost.org/c/index.cgi/FUDforum/chngview?cn=12042

Remember to rebuild your themes after applying it (to copy the code to all the files you mentioned).
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: "Please don't create duplicate topics"
Next Topic: Some bugs with NNTP on 3.0 RC 1
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 30 18:52:45 GMT 2024

Total time taken to generate the page: 0.05669 seconds