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.

MrToasty 08-03-2004 03:05 PM

Any notable advantages to this function over the use of php mailing?

dlopan 08-23-2004 06:20 PM

Thanks for the hack. Works great.

TRANCEBUDHA 08-24-2004 03:29 PM

I Cant Download The File Of The Smtp.txt Of These Tread And I Want To Enable The Smtp Function Becuse I Have A Shared Host That Doest Change A Thing, I Dont Want To Change The Host Because They Dont Have A Bandwith Control.
I CAN SE ALL THE CODES BUT NOT THE TXT FILE AT THE BIGINNIG

Zachery 08-24-2004 03:33 PM

Quote:

Originally Posted by TRANCEBUDHA
I Cant Download The File Of The Smtp.txt Of These Tread And I Want To Enable The Smtp Function Becuse I Have A Shared Host That Doest Change A Thing, I Dont Want To Change The Host Because They Dont Have A Bandwith Control.
I CAN SE ALL THE CODES BUT NOT THE TXT FILE AT THE BIGINNIG

O.o take a deep breath and try clearing your cache and redownlioading the files

TRANCEBUDHA 08-24-2004 03:49 PM

Quote:

Originally Posted by Zachery
O.o take a deep breath and try clearing your cache and redownlioading the files


THANKS A LOT

the wiz 09-03-2004 11:38 AM

EDIT: Got it working. Now people on AOL can get e-mail notifications and I can stop getting returned mail notices. Thanks. :D

deb0 09-05-2004 08:10 PM

Inittally without trying your code, I would get this running VB diag:

SMTP: localhost
sendmail_from: me@localhost.com
sendmail_path: None


My hoster won't let me touch the php.ini.

I grabbed your script, followed it verbatim, and now I get this

Fatal error: Call to undefined function: errormessage() in H:\hshome\wiltechs\basementreview.com\forums\inclu des\mail.php on line 235

Here is my line 235

return errorMessage("Unexpected response from SMTP server");

help!!!!

Zachery 09-05-2004 08:48 PM

Quote:

Originally Posted by deb0
Inittally without trying your code, I would get this running VB diag:

SMTP: localhost
sendmail_from: me@localhost.com
sendmail_path: None


My hoster won't let me touch the php.ini.

I grabbed your script, followed it verbatim, and now I get this

Fatal error: Call to undefined function: errormessage() in H:\hshome\wiltechs\basementreview.com\forums\inclu des\mail.php on line 235

Here is my line 235

return errorMessage("Unexpected response from SMTP server");

help!!!!

Are you sure thats there by default? if you follow the directoions to the tooth they work just fine.

deb0 09-05-2004 09:00 PM

I am positive. I went further and added the vboptions part like so in the mail.php file:

var $smtpHost = "mail.myserver.com";
var $smtpPort = 25;
var $smtpUser = $vboptions[webmasteremail];
var $smtpPass = "password";
var $smtpSocket = null;

Now, I get this error:

Parse error: parse error, unexpected T_VARIABLE in H:\hshome\wiltechs\basementreview.com\forums\inclu des\mail.php on line 96


This is line 96 : var $smtpUser = $vboptions[webmasteremail];

the wiz 09-05-2004 10:04 PM

Put in an actual e-mail address instead of the vb code.

deb0 09-05-2004 10:55 PM

Well, Here is what I have tried and the error below it:


user@domain.com;


Parse error: parse error, unexpected '@', expecting ',' or ';' in H:\hshome\wiltechs\basementreview.com\forums\inclu des\mail.php on line 97

"user@domain.com" or 'user@domain.com';

SMTP: localhost
sendmail_from: me@localhost.com
sendmail_path: None

The mailing function returned an error while trying to send the mail.
Check your mail server to ensure it is configured correctly to allow PHP to send mail from it. You should also check your mail server's error log for more diagnostic information.

This is really frustrating, been working on this all dayum day

rake 09-06-2004 12:31 AM

put it between single quotes.

deb0 09-08-2004 03:18 AM

look at what I entered before, I tried it without, with, and with double quotes.

Thx for the help anyway. Guess I will have to find another way, as I have followed this thread to the letter, and it doesn't work still.

VB3.03

the wiz 09-08-2004 01:06 PM

If it says and error was returned, then you SMTP server either requires authentication or you did not put in the username and/or password correctly.

deb0 09-08-2004 11:48 PM

the account I am using, I use everyday. I can login and pop on this account all day long. As mentioned on previous postes, I have tried many ways to specify the account.

Any examples ot suggestions, I will gladly try

the wiz 09-09-2004 12:02 AM

For the SMTP does your server require the @domain.com to work?

Zachery 09-09-2004 12:32 AM

Quote:

Originally Posted by the wiz
For the SMTP does your server require the @domain.com to work?

You need an @domain but not @domain.com depending.

Illuvatar 09-30-2004 04:11 AM

Well....I'm getting the
Quote:

2 - Illuvatar .... Emailing
Fatal error: Call to undefined function: errormessage() in /home/warofthe/public_html/forums/vbulletin225/upload/includes/mail.php on line 235
and here is the code as in my mail.php
var $smtpHost = "209.50.253.101";
var $smtpPort = 25;
var $smtpUser = 'illuvatar@warofthering.net';
var $smtpPass = '*******'; (pass is really there) hehe
var $smtpSocket = null;

Now....I can use either our IP Addy or 'warofthering.net' for my POP and SMTP servers in outlook, and when I check with Servint, they said best just to use IP addy....

Well...I've tried both....used double quotes on everything instead of single, and no matter what I try, it hangs for a minute or so and then it kicks me back the error above.

Now..I know that this hack is unsupported...but...a couple of folks seem to have been able to make it work. I've tried just about everything in this thread, and it don't wanna work.*sniff* Can anybody help me?

Floris 09-30-2004 07:40 AM

Quote:

Originally Posted by Zachery
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

Great stuff Zachery. Keep those hacker-help-tutorials coming.

Illuvatar 10-01-2004 01:19 PM

*bump*

Zachery 10-01-2004 03:09 PM

Quote:

Originally Posted by Illuvatar
*bump*

Make sure your using a basic text editor, such as wordpad, or editpad, dont use dreamweaver.

Illuvatar 10-01-2004 07:44 PM

Quote:

Originally Posted by Zachery
Make sure your using a basic text editor, such as wordpad, or editpad, dont use dreamweaver.

Thanks mate...will give it a go....was using DW. :p

Illuvatar 10-01-2004 08:06 PM

Okay mate...

I made the exact same changes with NotePad, and got the same results. Here's the code (excluding the pass of course)
Quote:

var $smtpHost = "209.50.253.101";
var $smtpPort = 25;
var $smtpUser = 'illuvatar@warofthering.net';
var $smtpPass = '******';
var $smtpSocket = null;
Whatcha think? You wouldn't be interested in some temporary FTP access would ya? ;)

Zachery 10-01-2004 08:11 PM

Quote:

Originally Posted by Illuvatar
Okay mate...

I made the exact same changes with NotePad, and got the same results. Here's the code (excluding the pass of course)

Whatcha think? You wouldn't be interested in some temporary FTP access would ya? ;)

Odd, now, just as a loof, this account exsists and its not your cacheall?

Illuvatar 10-01-2004 08:22 PM

Correct sir! That is my actual email account and is also listed as the webmaster email as well. I took the smtp host info directly out of my Outlook account/server area.

In fact..I just got notified of your reply at the above email;)

Erwin 10-03-2004 02:41 AM

Some SMTP servers do NOT allow connections from unknown IPs for security reasons to avoid spamming even if you have the correct passwords.

Illuvatar 10-03-2004 02:55 AM

K......but if we are using our own server as our nameserver and mail handler....would this still be a problem? Do I need to contact my provider?

Illuvatar 10-11-2004 12:04 AM

Hey Zach,

The nice folks over at Servint are trying to help me sort out why this is not working for me and asked a question that I do not know. :p

Does this code attempt to send mail via Sendmail or Exim?

Thanks!

Zachery 10-11-2004 12:04 AM

Quote:

Originally Posted by Illuvatar
Hey Zach,

The nice folks over at Servint are trying to help me sort out why this is not working for me and asked a question that I do not know. :p

Does this code attempt to send mail via Sendmail or Exim?

Thanks!

Honestly? I do not know :/

Illuvatar 10-11-2004 12:14 AM

lol....

No worries! I'll let them try and sort this bugger!


All times are GMT. The time now is 01:16 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.01595 seconds
  • Memory Usage 1,834KB
  • 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
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)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