Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > vBulletin 3 Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Howto: Enable SMTP for vB 3.0.2/3
Zachery's Avatar
Zachery
Join Date: Jul 2002
Posts: 11,440

 

Ontario, Canada
Show Printable Version Email this Page Subscription
Zachery Zachery is offline 07-16-2004, 10:00 PM

I am putting this in here once it has been confirmed working ill ask it to be moved.

I offer no support, enabling SMTP will be considered hacking, thus why it is here.

Thanks to Chris on the vB team for the help :0
Attached Files
File Type: txt smtp.txt (691 Bytes, 697 views)
Reply With Quote
  #42  
Old 11-09-2004, 02:16 AM
dlouly47 dlouly47 is offline
 
Join Date: Nov 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.
Reply With Quote
  #43  
Old 11-09-2004, 03:08 AM
dlouly47 dlouly47 is offline
 
Join Date: Nov 2004
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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;
Reply With Quote
  #44  
Old 11-29-2004, 07:20 PM
owner owner is offline
 
Join Date: Nov 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I get this error : Parse error: parse error, unexpected '@', expecting ',' or ';' in /home/***/public_html/includes/mail.php on line 96
Reply With Quote
  #45  
Old 11-29-2004, 08:41 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #46  
Old 11-30-2004, 01:03 PM
owner owner is offline
 
Join Date: Nov 2004
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

var $smtpHost = "mailserver.server.info";
var $smtpPort = 25;
Line 96 var $smtpUser = admin@site.com;
var $smtpPass = *****;
var $smtpSocket = null;
Reply With Quote
  #47  
Old 12-03-2004, 04:23 AM
Illuvatar's Avatar
Illuvatar Illuvatar is offline
 
Join Date: Apr 2002
Location: So. Cal
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

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!!!
Reply With Quote
  #48  
Old 12-03-2004, 03:47 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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.

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
Reply With Quote
  #49  
Old 12-03-2004, 04:32 PM
Illuvatar's Avatar
Illuvatar Illuvatar is offline
 
Join Date: Apr 2002
Location: So. Cal
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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*
Attached Files
File Type: txt smtp hack fix by ulf.txt (3.3 KB, 147 views)
Reply With Quote
  #50  
Old 12-03-2004, 05:43 PM
Zachery's Avatar
Zachery Zachery is offline
 
Join Date: Jul 2002
Location: Ontario, Canada
Posts: 11,440
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #51  
Old 12-04-2004, 02:20 AM
Dan's Avatar
Dan Dan is offline
 
Join Date: Dec 2002
Location: Titusville, Florida
Posts: 1,787
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ooo nice one zak
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:52 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04706 seconds
  • Memory Usage 2,332KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (2)postbit_attachment
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete