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 |
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:
|
Quote:
|
Is it best to create a separate account for these purposes ?
|
Quote:
Code:
var $smtpUser = user@domain.com; Code:
var $smtpUser = $vboptions[webmasteremail]; |
Good one :) I like it!
|
Thanks! This is just what I needed. I applied this to my 3.0.3 system and it works.
|
Quote:
|
what exactly does this hack do ?
|
Quote:
|
Any notable advantages to this function over the use of php mailing?
|
Thanks for the hack. Works great.
|
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 |
Quote:
|
Quote:
THANKS A LOT |
EDIT: Got it working. Now people on AOL can get e-mail notifications and I can stop getting returned mail notices. Thanks. :D
|
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!!!! |
Quote:
|
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]; |
Put in an actual e-mail address instead of the vb code.
|
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 |
put it between single quotes.
|
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 |
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.
|
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 |
For the SMTP does your server require the @domain.com to work?
|
Quote:
|
Well....I'm getting the
Quote:
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? |
Quote:
|
*bump*
|
Quote:
|
Quote:
|
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:
|
Quote:
|
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;) |
Some SMTP servers do NOT allow connections from unknown IPs for security reasons to avoid spamming even if you have the correct passwords.
|
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?
|
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! |
Quote:
|
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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|