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

Home » FUDforum Development » Bug Reports » Using SMTP server
Show: Today's Messages :: Unread Messages :: Show Polls :: Message Navigator
| Subscribe to topic | Bookmark topic 
Switch to threaded view of this topic Create a new topic Submit Reply
Using SMTP server [message #160635] Thu, 08 October 2009 15:55 Go to next message
byron is currently offline  byron
Messages: 9
Registered: October 2009
Karma: 0
Junior Member
add to buddy list
ignore all messages by this user
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 16:11 Go to previous message
naudefj is currently offline  naudefj   South Africa
Messages: 3632
Registered: December 2004
Karma: 17
Senior Member
Administrator
Core Developer
add to buddy list
ignore all messages by this user
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).
Quick Reply
Formatting Tools:   
  Switch to threaded view of this topic Create a new topic
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: Mon Dec 18 17:35:37 EST 2017

Total time taken to generate the page: 0.00651 seconds