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)

zaon 03-22-2005 09:39 PM

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?

Starsurfer 05-10-2005 01:20 PM

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?

ALcorn 05-10-2005 01:27 PM

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";

Starsurfer 05-10-2005 01:31 PM

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

ALcorn 05-10-2005 01:35 PM

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";

Starsurfer 05-10-2005 01:36 PM

It is already that way.

ALcorn 05-10-2005 01:40 PM

Quote:

Originally Posted by Starsurfer
It is already that way.

Are you sure you wrote all informations correctly ?

Starsurfer 05-10-2005 01:43 PM

yeah positive.

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

Is that normal for 3.0.7?

Starsurfer 05-11-2005 01:55 PM

Anyone?

code-frog 05-11-2005 03:30 PM

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.


All times are GMT. The time now is 01:13 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.01290 seconds
  • Memory Usage 1,743KB
  • 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
  • (5)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