Contributions > Plugins, tips, and tricks
Mail 1.6.3: Setting up mail through SMTP (using swiftmailer)
joro_shulev:
Hi,
I'm able to set up everything, but i get the following message when I try to send e-mail (while chat function is offline)
SMTP Error: Could not connect to SMTP host.
Warning: Cannot modify header information - headers already sent by (output started at /home/content/86/9957186/html/proofable/chat/libs/mailer/class.phpmailer.php:586) in /home/content/86/9957186/html/proofable/chat/libs/common.php on line 413
Please help me to fix this.
Thanks a million times
dennis_braga:
--- Quote from: Inspirer on May 18, 2010, 10:37:05 PM ---(instructions for Mibew 1.6.3)
4. Edit common.php, find function webim_mail(), delete it or rename to webim_mail_old
--- End quote ---
...in my case, I found the function on notify.php!
breaker84i:
guys what if my smtp doesn't required username dan password?
should i leave it blank?
i follow all but nothing happen, nothing error...
the mail was not sent..
regards
faf:
Hi there! :)
Though I know nothing about this solution and its compatibility with the actual version of Mibew, I can make some suggestions.
One should know that starting from the version of 1.6.6 (AFAIR) the function for sending emails is not webim_mail anymore. Now it's called mibew_mail. So you should remove that function from the libs/notify.php file and change the name of the function webim_mail in the original code (the one attached to the starting post of this topic).
As for your question, maybe you should change the original code to simply remove the calls of setUsername and setPassword methods. (BTW, I really hope that you're not running an open relay. :D )
And, of course, you should check all possible system logs for signs of any errors.
cbegg50:
Hi There,
I have 1.6.9, but worked with the 1.6.4 modifications which all seemed to work find (using notify.php). In the supplied maill.php, I changed all the webim instance to mibew and it almost works. You assume that the mailbox username and the SMTP username are the same. But my ISP keeps them different. I simply edited line 43 in your supplied mail.php to:
->setUsername('MySMTPUsername')
Then that was it.
Nice fix for SMTP, thanks,
Colin Begg
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version