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
  #72  
Old 02-17-2005, 01:33 PM
ALcorn ALcorn is offline
 
Join Date: Oct 2004
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zaon
is this SMTP function proprietary to vbulletin, being Jelsoft's hand-made mail-sending code that bypasses normal protocol and only contains the capabilities Jelsoft's programmers have chosen to include?
In fact the support of SSL/TLS should be sincluded not only the server side (i.e. Google server) but yet on the client side, in our case in the VBulletin script. So if there's no SSL/TLS support included in VBulletin no communication via SSL/TLS protocol will be possible.

That mean its probably impossible actually (please, correct me if I am wrong on this point) to have VBulletin send mail via Google SMTP service.

Keep in mind that the SMTP e-mail future is not actually supported by Jelsoft.
Reply With Quote
  #73  
Old 02-20-2005, 05:01 AM
zaon zaon is offline
 
Join Date: Jul 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So has anyone out there got this SMTP function to work with web-based email of any kind (yahoo, hotmail, gmail, etc.)?
Reply With Quote
  #74  
Old 02-20-2005, 04:05 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 zaon
So has anyone out there got this SMTP function to work with web-based email of any kind (yahoo, hotmail, gmail, etc.)?
Do any of them support SMTP ?
Reply With Quote
  #75  
Old 02-20-2005, 06:56 PM
ALcorn ALcorn is offline
 
Join Date: Oct 2004
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
Do any of them support SMTP ?
Yes, gmail support the SMTPS.

In fact, I looked more closely to the mail.php and found that the function fsockopen() is used. That mean (at least in theory) we can establish a secure connection via SSL if we prefixe the server name with ssl:// AND we have PHP version better than 4.3.0 AND it was compiled with openssl support. Actually, my host does not have PHP compiled with openssl, so i didn't tried it.
Reply With Quote
  #76  
Old 02-21-2005, 09:31 AM
zaon zaon is offline
 
Join Date: Jul 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Zachery
Do any of them support SMTP ?
Yeah, most do. Like yahoo supports SMTP via all sorts of mail clients if you pay the $19/year for the bigger mail box, etc.

Google's Gmail supports it for free but requires it be SSL and authenticated, and even has step-by-step instructions posted online for every type of mail client you can think of.


@ALcorn: Thanks, man :-) So you mean like use:
var $smtpHost = "ssl://mail.domain.com";
??

And I do have PHP 4.3.10, but not sure about openssl compiling..guess i'd have to try it.
Reply With Quote
  #77  
Old 03-11-2005, 07:29 PM
code-frog's Avatar
code-frog code-frog is offline
 
Join Date: Oct 2004
Location: Boise, ID
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

In the example you post shouldn't the smtpuser and password be in quotes?

I get errors unless I have those items quoted. Even with quotes this isn't working. Ideas?

P.S. - Running this on a Windows box. UGH!
Reply With Quote
  #78  
Old 03-11-2005, 08:50 PM
bi11i's Avatar
bi11i bi11i is offline
 
Join Date: Aug 2004
Location: Portland, OR
Posts: 134
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Even with quotes this isn't working. Ideas?
so are you not getting any errors with the quotes? any more info? any logs, etc when you're getting no errors, but no functionality.....?
Reply With Quote
  #79  
Old 03-13-2005, 04:39 PM
Viks Viks is offline
 
Join Date: Sep 2004
Location: Toronto
Posts: 295
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This setting worked for me perfectly. thanks Zachery

============
var $smtpHost = "smtp.example.com";
var $smtpPort = 25;
var $smtpUser = "myemail@address.com";
var $smtpPass = *********;
var $smtpSocket = null;
=================
Reply With Quote
  #80  
Old 03-22-2005, 08:59 PM
zaon zaon is offline
 
Join Date: Jul 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I upgraded vbulletin so I could install this hack.

I ran into same errors until i put double quotes around all three string items, leaving just port and socket without quotes.

But then i got that Fatal error: Call to undefined function:
errormessage() in /home/sites/www/zaon.org/includes/mail.php on line 218
error which of course points back to just this line:
return errorMessage("Unexpected response from SMTP server");
which I assume has something to do with this hack and the mail server not playing nice.

So, in order to test and then use this feature, if ANYONE has this working can you please post your account settings? And by that I obviously don't mean your username/pass, but rather which settings and which web-based SMTP email provider (yahoo, hotmail, whatever) you're using.
Reply With Quote
  #81  
Old 03-22-2005, 09:05 PM
code-frog's Avatar
code-frog code-frog is offline
 
Join Date: Oct 2004
Location: Boise, ID
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you are running on Windows 2003 or a Windows Server you need to find your php mail.ini file and change it's smtp server to: 127.0.0.1 and it's smtp user to a real account on the message board domain. I did that and it worked fine. I also had to allow "SMTP Relaying for authenticated users" on SMTP server. It works about 80% of the time now and the other 20% is a configuration problem on my server that I'm slowly tuning out. I've purposely left out the location of the mail.ini file for php because it may not be the same on every server. I use a program called PLESK to admin my windows server and CPANEL to admin my Linux server.

- Rex
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 04:12 AM.


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.04741 seconds
  • Memory Usage 2,326KB
  • 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
  • (5)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
  • (1)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