is this hack good with vb 3 and i am using exchange 2003 with windows 2003, thanks. i can't get any mail from php to work.
|
ok i did the changes and i get this error,
Parse error: parse error, expecting `','' or `';'' in c:\inetpub\wwwroot\forum\includes\mail.php on line 96 I am running vb3.0.3 on a Windows 2003/Exchange 2003. Looks like it doesn't like var $smtpUser = webmaster@lou-ly.com; |
I get this error : Parse error: parse error, unexpected '@', expecting ',' or ';' in /home/***/public_html/includes/mail.php on line 96
|
Quote:
|
var $smtpHost = "mailserver.server.info";
var $smtpPort = 25; Line 96 var $smtpUser = admin@site.com; var $smtpPass = *****; var $smtpSocket = null; |
Hey ya Zach!
I wanted to report back here if and when my programmer fixed the issues that we were having with this, and I must apologise for the delay as we were able to get this working late in October! :nervous: He did however have to make some changes, but now I am very pleased to report that it works a charm! I get zero, I repeat zero rejections from providers like Hotmail, AOL, and the like. And this also allowed us to change the settings on the server to "Disallow mail to be sent from User Nobody" which was a big security hole, and ended us up on a few blacklists for SPAM. Thanks to you and this hack, we've been removed from most if not all hacks and couldn't be happier. :cool: Sooo...here is what he had to do to get this to work for us, and I've also attached our functions and mail php files all marked with: # SMTP mail bug fix Ulf Stabe (server, email, and pass info removed of course..hehe) Quote:
|
Quote:
1. When you do you break the license agreement with jelsoft 2. you break the forum rules You can psot file changes, instructions to fix the bugs, but not whole vBulletin stock files |
1 Attachment(s)
Oh jeez.......
Apologies Zach!! :speechless: Since I didn't actually do the coding I figured it would be less confusing than just posting the changes, but he labled all of his changes so it was easy enough for me to do. I've gone through the two files and have pieced it together the best I can and attached ONLY the changes. Better? I Really hope this helps! Sorry for stepping out of bounds. *Considers his hands properly slapped* |
Quote:
|
ooo nice one zak :D
|
Quote:
var $smtpPort = 25; Line 96 var $smtpUser = admin@site.com; var $smtpPass = *****; var $smtpSocket = null; --------- Still StuCK cant send mails nuthing happening .. plz help me on this one will be very greatful :) |
I also was getting the parser error using vb v3.0.3 and Argosoft Mail Server Pro (v1.8.7.0). This fix did not work for me (in fact, it looks like it's designed for an earlier version of vB.)
I ultimately had to use full quotations around my smtpuser field for it to work. I was unable to use the $vbphrase[webmasteremail]. Code:
var $smtpHost = "mailserver.server.info"; Thanks for whoever it was that finally led me in the right direction... |
Nice mod, but I don't see why I get this errormessage() error like some other people in this thread are getting :(
|
Quote:
|
I fixed my parsing errors by encapsulating my email address in double quotations.
|
Quote:
Anyways, I can't seem to get this to work :( I've contacted Jelsoft and they haven't replied back in 3 hours or so yet as well. |
Quote:
|
Quote:
|
then what ARE you talking about? your post isn't all that specific, what do you expect?
Quote:
|
This hack is so important for so many of us.
|
Quote:
I somehow got it to work but i had to change some setting in my server.(smtp setting) In the server WHM, I did this: Server Setup > Security Tweaks > The SMTP Tweak is disabled Without this the emails were not working and I was getting all kind of errors. Now my smtp is kind of insecure. php doesnt send email as "nobody" now cause I disabled in WHM. But I dont know how to have the smtp check for users id before letting them use smtp to send emails. Can someone give me some pointers ? I want to be able to have the smtp check for userid/password before they allow someone to send email. Now anyone can i believe. |
Zach, can I please request something similar to Illuvatar's fixed attachement to be posted on the first page entry as well? It took me a good 30 minutes of hair ripping before I finally noticed his little attachement and applied for it to get my vb to work... Now that I'm missing like half of my hair, I'd like to keep the other half next time I need to apply this (maybe the next major release?)....
|
If I am not wrong, to be able to send mails through SMTP, first you need to verify your self with user id and password. Thats why this hack needs ur logins to connect. "Nobody" is simply using php mail function to send mail.. so I don't think your SMTP is insecure.
I think you could edit the settings if u still fear in SMTP conf file. I could not get it to work :(. I haven't tried the second attachment which Illuvator gave. I tried it, but did not work.. so i am trying what Zach gave. Getting this error: Fatal error: Call to undefined function: errormessage() in /home/torrents/public_html/includes/mail.php on line 235 at Line 235: if (!$this->sendMessage(".", 250)) { return errorMessage("Unexpected response from SMTP server"); I got that code. However, I disabled SMTP tweak, also checked my server doesnt allow to send mails as "NoBody". EDIT: I could send mail to single user through diagnose tools, but when I send mass mails I am getting this error: Fatal error: Call to undefined function: errormessage() in /home/torrents/public_html/includes/mail.php on line 218 The line I got in mail.php at 213 - 219 are: if (!$this->sendMessage(base64_encode($this->smtpUser), 334) OR !$this->sendMessage(base64_encode($this->smtpPass), 235)) { return errorMessage("Authorization to the SMTP server failed"); } It can't be wrong password, because it is able to send mail to a single user. It sent to one person in mass mail list, it only occured for second > user. Any idea how to overcome it? |
I'm on vBulletin 3.0.1 at the moment, but don't see a mail.php file anywhere, much less in the includes directory. I really need to use SMTP to send mail via gmail.com instead of from forums server directly (for reverse lookup reasons/blocking/etc). Is this code found in some other includes file in 3.0.1 versus 3.0.2+? I wouldnt' think any major structural changes to vbulletin would exist between security releases. What do I do?
|
Quote:
howto enable smtp for vBulletin 3.0.2 and 3.0.3 It also works on all versions there after. |
Thanks, Zachery.
I'll go ahead and renew my maintenance agreement so I can upgrade to latest ver of vbulletin. One more question tho: My gmail SMTP server requires some additional settings I want to ensure this forum fix will accommodate: 1) outgoing SMTP server requires authentication (using same settings as incoming POP) 2) outgoing SMTP server port requires SSL encryption (port number 465) Either of those pose a problem with this install? I can see in your code where you enter your port number, so maybe that automatically enables SSL. But where do you switch on outgoing authentication? Appreciate your patience with me. Thanks. --Justin |
Has any got this working using Illuvatar's rendition? When I used just Zacherys instructions, it sends emails, but some get bounced even when their good valid addresses. I tried using Illuvatar's fix but get all kinds of errors. part of it is that his instruction have a piece of code repeated twice in them.
PHP Code:
|
Hmmm.. if no one is able to answer my question two posts up, maybe someone can state whether or not they're able to use this SMTP send function with web-based real email like gmail, hotmail, yahoo, etc., which offer POP/SMTP access to those accounts?
|
Quote:
$smtpUser = user@domain.com; $smtpPass = password; But I think there will be a problem with SSL. |
Thanks, ALcorn :-)
Also, I rechecked and google mail does indeed require TSL/SSL for outgoing SMTP connections and there's no way around that. Google tells me this shouldn't be a problem because ALL current mail clients in the world, no matter how obscure, have a setting for TSL (sometimes called 'SSL') for both incoming and outgoing mail sending. So, there must be a way for our Linux/PHP server to send that way, right? Or, is this SMTP function proprietary to vbulletin, being Jelsoft's hand-made mail-sending code that bypasses normal protocol and only contains the capabilities Jelsoft's programmers have chosen to include? Thanks for any clarification y'all can offer! :-) |
Quote:
That mean its probably impossible actually (please, correct me if I am wrong on this point) to have VBulletin send mail via Google SMTP service. Keep in mind that the SMTP e-mail future is not actually supported by Jelsoft. ;) |
So has anyone out there got this SMTP function to work with web-based email of any kind (yahoo, hotmail, gmail, etc.)?
|
Quote:
|
Quote:
In fact, I looked more closely to the mail.php and found that the function fsockopen() is used. That mean (at least in theory) we can establish a secure connection via SSL if we prefixe the server name with ssl:// AND we have PHP version better than 4.3.0 AND it was compiled with openssl support. Actually, my host does not have PHP compiled with openssl, so i didn't tried it. |
Quote:
Google's Gmail supports it for free but requires it be SSL and authenticated, and even has step-by-step instructions posted online for every type of mail client you can think of. @ALcorn: Thanks, man :-) So you mean like use: var $smtpHost = "ssl://mail.domain.com"; ?? And I do have PHP 4.3.10, but not sure about openssl compiling..guess i'd have to try it. |
In the example you post shouldn't the smtpuser and password be in quotes?
I get errors unless I have those items quoted. Even with quotes this isn't working. Ideas? P.S. - Running this on a Windows box. UGH! |
Quote:
|
This setting worked for me perfectly. thanks Zachery
============ var $smtpHost = "smtp.example.com"; var $smtpPort = 25; var $smtpUser = "myemail@address.com"; var $smtpPass = *********; var $smtpSocket = null; ================= |
Ok, I upgraded vbulletin so I could install this hack.
I ran into same errors until i put double quotes around all three string items, leaving just port and socket without quotes. But then i got that Fatal error: Call to undefined function: errormessage() in /home/sites/www/zaon.org/includes/mail.php on line 218 error which of course points back to just this line: return errorMessage("Unexpected response from SMTP server"); which I assume has something to do with this hack and the mail server not playing nice. So, in order to test and then use this feature, if ANYONE has this working can you please post your account settings? And by that I obviously don't mean your username/pass, but rather which settings and which web-based SMTP email provider (yahoo, hotmail, whatever) you're using. |
If you are running on Windows 2003 or a Windows Server you need to find your php mail.ini file and change it's smtp server to: 127.0.0.1 and it's smtp user to a real account on the message board domain. I did that and it worked fine. I also had to allow "SMTP Relaying for authenticated users" on SMTP server. It works about 80% of the time now and the other 20% is a configuration problem on my server that I'm slowly tuning out. I've purposely left out the location of the mail.ini file for php because it may not be the same on every server. I use a program called PLESK to admin my windows server and CPANEL to admin my Linux server.
- Rex |
All times are GMT. The time now is 08:40 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|