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 01:05 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 | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|