vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3 Articles (https://vborg.vbsupport.ru/forumdisplay.php?f=187)
-   -   Howto: Enable SMTP for vB 3.0.2/3 (https://vborg.vbsupport.ru/showthread.php?t=67294)

dlouly47 11-09-2004 02:16 AM

is this hack good with vb 3 and i am using exchange 2003 with windows 2003, thanks. i can't get any mail from php to work.

dlouly47 11-09-2004 03:08 AM

ok i did the changes and i get this error,

Parse error: parse error, expecting `','' or `';'' in c:\inetpub\wwwroot\forum\includes\mail.php on line 96

I am running vb3.0.3 on a Windows 2003/Exchange 2003.

Looks like it doesn't like var $smtpUser = webmaster@lou-ly.com;

owner 11-29-2004 07:20 PM

I get this error : Parse error: parse error, unexpected '@', expecting ',' or ';' in /home/***/public_html/includes/mail.php on line 96

Zachery 11-29-2004 08:41 PM

Quote:

Originally Posted by owner
I get this error : Parse error: parse error, unexpected '@', expecting ',' or ';' in /home/***/public_html/includes/mail.php on line 96

Whats on line 96 :)

owner 11-30-2004 01:03 PM

var $smtpHost = "mailserver.server.info";
var $smtpPort = 25;
Line 96 var $smtpUser = admin@site.com;
var $smtpPass = *****;
var $smtpSocket = null;

Illuvatar 12-03-2004 04:23 AM

Hey ya Zach!

I wanted to report back here if and when my programmer fixed the issues that we were having with this, and I must apologise for the delay as we were able to get this working late in October! :nervous:

He did however have to make some changes, but now I am very pleased to report that it works a charm! I get zero, I repeat zero rejections from providers like Hotmail, AOL, and the like. And this also allowed us to change the settings on the server to "Disallow mail to be sent from User Nobody" which was a big security hole, and ended us up on a few blacklists for SPAM. Thanks to you and this hack, we've been removed from most if not all hacks and couldn't be happier. :cool:

Sooo...here is what he had to do to get this to work for us, and I've also attached our functions and mail php files all marked with:
# SMTP mail bug fix Ulf Stabe (server, email, and pass info removed of course..hehe)
Quote:

- the errormessage function needs to be outside the smtp class
- changed the opening HELO command to the EHLO command
- a typo in an if clause of mail class : if ($this->smtpUser AND
$this->smtpPass) --> if ($this->smtpUser & $this->smtpPass)
- explicitely set a socket timeout of 100 millisec, otherwise every call
where the response is checked takes 1 min (default timeout). So sending one
mail took more than 6 min!
- In VB the delimiter for sendmail is a linefeed (/n), SMTP needs carriage
return and linefeed (/r/n) This is only set correctly when the php ini entry
for sendmail path is removed.
I replace the wrong delimiter with the right one now shortly before the mail
is sent.
I hope this helps anyone who was having the same issue as I was, and thanks again ZACHERY!!!

Zachery 12-03-2004 03:47 PM

Quote:

Originally Posted by Illuvatar
Hey ya Zach!

I wanted to report back here if and when my programmer fixed the issues that we were having with this, and I must apologise for the delay as we were able to get this working late in October! :nervous:

He did however have to make some changes, but now I am very pleased to report that it works a charm! I get zero, I repeat zero rejections from providers like Hotmail, AOL, and the like. And this also allowed us to change the settings on the server to "Disallow mail to be sent from User Nobody" which was a big security hole, and ended us up on a few blacklists for SPAM. Thanks to you and this hack, we've been removed from most if not all hacks and couldn't be happier. :cool:

Sooo...here is what he had to do to get this to work for us, and I've also attached our functions and mail php files all marked with:
# SMTP mail bug fix Ulf Stabe (server, email, and pass info removed of course..hehe)
I hope this helps anyone who was having the same issue as I was, and thanks again ZACHERY!!!

Never, NEVER, EVER~! post vBulletin files. ever.

1. When you do you break the license agreement with jelsoft
2. you break the forum rules

You can psot file changes, instructions to fix the bugs, but not whole vBulletin stock files

Illuvatar 12-03-2004 04:32 PM

1 Attachment(s)
Oh jeez.......

Apologies Zach!! :speechless:

Since I didn't actually do the coding I figured it would be less confusing than just posting the changes, but he labled all of his changes so it was easy enough for me to do. I've gone through the two files and have pieced it together the best I can and attached ONLY the changes.

Better? I Really hope this helps!

Sorry for stepping out of bounds. *Considers his hands properly slapped*

Zachery 12-03-2004 05:43 PM

Quote:

Originally Posted by Illuvatar
Oh jeez.......

Apologies Zach!! :speechless:

Since I didn't actually do the coding I figured it would be less confusing than just posting the changes, but he labled all of his changes so it was easy enough for me to do. I've gone through the two files and have pieced it together the best I can and attached ONLY the changes.

Better? I Really hope this helps!

Sorry for stepping out of bounds. *Considers his hands properly slapped*

Its ok :) just need to ensure that people get the message about posting files :)

Dan 12-04-2004 02:20 AM

ooo nice one zak :D


All times are GMT. The time now is 01:07 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01658 seconds
  • Memory Usage 1,744KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete