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
  #82  
Old 03-22-2005, 09:39 PM
zaon zaon is offline
 
Join Date: Jul 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks, Rex. Although I'm on an apache/Linux server. So hmmmm.

You mentioned getting it to work... which real email provider you get it to function with?

And, for example, does this hack only work accounts that use the "my outgoing server requires authentication" or does it only work with those accounts that specifically do not require that feature?

Ok, I had someone set up a basic SMTP account with no restrictions as a test.

Getting this error now:
Fatal error: Call to undefined function: errormessage() in /home/sites/www/zaon.org/includes/mail.php on line 202

Which points to a different, yet similar line as before, in this case:
return errorMessage("Authorization to the SMTP server failed");

Any clues on what's so fussy here?
Reply With Quote
  #83  
Old 05-10-2005, 01:20 PM
Starsurfer Starsurfer is offline
 
Join Date: Aug 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I run it i get the error Parse error: parse error, unexpected '@', expecting ',' or ';' in /home/star/public_html/includes/mail.php on line 96
What could be wrong?
Reply With Quote
  #84  
Old 05-10-2005, 01:27 PM
ALcorn ALcorn is offline
 
Join Date: Oct 2004
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Starsurfer
When I run it i get the error Parse error: parse error, unexpected '@', expecting ',' or ';' in /home/star/public_html/includes/mail.php on line 96
What could be wrong?
Read the topic again... You should write the following line with quotes
Code:
var $smtpUser = "user@domain.com";
Reply With Quote
  #85  
Old 05-10-2005, 01:31 PM
Starsurfer Starsurfer is offline
 
Join Date: Aug 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah I noticed that after, I now get the error Warning: fsockopen(): unable to connect to mail.domain.com:25 in /includes/mail.php on line 183

Fatal error: Call to undefined function: errormessage() in /home/star/public_html/includes/mail.php on line 248
Reply With Quote
  #86  
Old 05-10-2005, 01:35 PM
ALcorn ALcorn is offline
 
Join Date: Oct 2004
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Starsurfer
yeah I noticed that after, I now get the error Warning: fsockopen(): unable to connect to mail.domain.com:25 in /includes/mail.php on line 183

Fatal error: Call to undefined function: errormessage() in /home/star/public_html/includes/mail.php on line 248
Probably, It's the same problem, write the following line with quotes:
Code:
var $smtpHost = "mail.domain.com";
Reply With Quote
  #87  
Old 05-10-2005, 01:36 PM
Starsurfer Starsurfer is offline
 
Join Date: Aug 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It is already that way.
Reply With Quote
  #88  
Old 05-10-2005, 01:40 PM
ALcorn ALcorn is offline
 
Join Date: Oct 2004
Posts: 18
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Starsurfer
It is already that way.
Are you sure you wrote all informations correctly ?
Reply With Quote
  #89  
Old 05-10-2005, 01:43 PM
Starsurfer Starsurfer is offline
 
Join Date: Aug 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yeah positive.

SMTP: localhost
sendmail_from: None
sendmail_path: /usr/sbin/sendmail -t -i

Is that normal for 3.0.7?
Reply With Quote
  #90  
Old 05-11-2005, 01:55 PM
Starsurfer Starsurfer is offline
 
Join Date: Aug 2003
Posts: 29
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Anyone?
Reply With Quote
  #91  
Old 05-11-2005, 03:30 PM
code-frog's Avatar
code-frog code-frog is offline
 
Join Date: Oct 2004
Location: Boise, ID
Posts: 11
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by zaon
Thanks, Rex. Although I'm on an apache/Linux server. So hmmmm.

You mentioned getting it to work... which real email provider you get it to function with?

And, for example, does this hack only work accounts that use the "my outgoing server requires authentication" or does it only work with those accounts that specifically do not require that feature?

Ok, I had someone set up a basic SMTP account with no restrictions as a test.

Getting this error now:
Fatal error: Call to undefined function: errormessage() in /home/sites/www/zaon.org/includes/mail.php on line 202

Which points to a different, yet similar line as before, in this case:
return errorMessage("Authorization to the SMTP server failed");

Any clues on what's so fussy here?
Holy CRUD!!! This thread fired up and I didn't know about it. Let me see...

So I've got a Linux box running this message board and it's email functions are rock solid. (I have a Windows and a Linux server hosted by Burst.) The only thing I can say to you is make sure that your mail functions point to: 127.0.0.1 instead of localhost (in Linux make sure that's defined it should be, a simple ping to that IP would tell you). Then all you need is to make sure that the SMTP account sending the emails is a real account on a real domain on the server. You can get some good feedback using the diagnostic email in the admin panel. It's under "Import & Maintenance" down at the bottom of the panel. Click "Diagnostics" then send email. You'll get some useful output.

I'll watch for your replies so let me know.

Quote:
Originally Posted by Starsurfer
yeah positive.

SMTP: localhost
sendmail_from: None
sendmail_path: /usr/sbin/sendmail -t -i


Is that normal for 3.0.7?
Nope that's wrong.

SMTP: 127.0.0.1
sendmail_from: realuser@realdomainonthisserver.com
sendmail_path: // This looks okay.

Are you on Linux/Windows ehem Winblows? Let me know... I mentioned earlier I'm running this on Windows and Linux. The Linux is so bulletproof I don't even check it. The windows I have to have 9 secret service agents watching around the clock.
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 05:30 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.06439 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
  • (2)bbcode_code
  • (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