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)

Zachery 07-16-2004 10:00 PM

Howto: Enable SMTP for vB 3.0.2/3
 
1 Attachment(s)
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

HuangA 07-17-2004 10:23 PM

I clicked "Send" in diagnostics after typing in my email address; the script have been executing for about a minute now and still no response. The IE logo is turning though; so it is definetly doing something...


Edit:
It gave me this:
SMTP: localhost
sendmail_from: None
sendmail_path: /usr/sbin/sendmail -t -i


Fatal error: Call to undefined function: errormessage() in /home2/gogmia/public_html/forums/includes/mail.php on line 216


Line 214 to 217
PHP Code:

214.                if (!$this->sendMessage("RCPT TO:<" trim($address) . ">"250))
215.                {
216.                    return errorMessage("Unexpected response from SMTP server");            
217.                

I'm guessing I still need to contact my host; thanks anyways for the great effort put in! This post is safe to be deleted.

Zachery 07-17-2004 10:27 PM

Quote:

Originally Posted by HuangA
I clicked "Send" in diagnostics after typing in my email address; the script have been executing for about a minute now and still no response. The IE logo is turning though; so it is definetly doing something...


Edit:
It gave me this:
SMTP: localhost
sendmail_from: None
sendmail_path: /usr/sbin/sendmail -t -i


Fatal error: Call to undefined function: errormessage() in /home2/gogmia/public_html/forums/includes/mail.php on line 216


Line 214 to 217
PHP Code:

214.                if (!$this->sendMessage("RCPT TO:<" trim($address) . ">"250))
215.                {
216.                    return errorMessage("Unexpected response from SMTP server");            
217.                

I'm guessing I still need to contact my host; thanks anyways for the great effort put in! This post is safe to be deleted.

Did you make sure you created an smpt account? :)

Natch 07-20-2004 10:24 AM

Is it best to create a separate account for these purposes ?

Dark_Wizard 07-20-2004 10:55 AM

Quote:

Originally Posted by Natch
Is it best to create a separate account for these purposes ?

Why not change this:
Code:

var $smtpUser = user@domain.com;
to this:
Code:

var $smtpUser = $vboptions[webmasteremail];
and obviously add the password on the next line....

Natch 07-20-2004 11:05 AM

Good one :) I like it!

Ian Dagnabbit 07-26-2004 06:07 PM

Thanks! This is just what I needed. I applied this to my 3.0.3 system and it works.

Zachery 07-29-2004 09:23 AM

Quote:

Originally Posted by Ian Dagnabbit
Thanks! This is just what I needed. I applied this to my 3.0.3 system and it works.

Glad to hear it :)

deathemperor 07-29-2004 12:57 PM

what exactly does this hack do ?

Zachery 07-29-2004 07:44 PM

Quote:

Originally Posted by deathemperor
what exactly does this hack do ?

instead of using php's mail function your using an smpt account to send email.


All times are GMT. The time now is 01:06 PM.

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.01358 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
  • (2)bbcode_code_printable
  • (2)bbcode_php_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (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