Contributions > Plugins, tips, and tricks
Mail 1.6.3: Setting up mail through SMTP (using swiftmailer)
Inspirer:
(instructions for Mibew 1.6.3)
1. Download SwiftMailer http://swiftmailer.org (latest version is 4.0.6)
2. Unpack it into /webim/libs/ folder.
3. Rename folder /webim/libs/Swift-4.0.6/ -> /webim/libs/Swift/
4. Edit common.php, find function webim_mail(), delete it or rename to webim_mail_old
5. Unpack attached file /webim/libs/mail.php
6. Edit files /webim/leavemessage.php & /webim/mail.php, add line at the end of requires block: require_once('libs/mail.php');
7. Edit file /webim/operator/restore.php, add line at the end of requires block: require_once('../libs/mail.php');
8. Setup mailboxes
8.1 Edit /webim/libs/mail.php (setup smtp server, login, passord, ssl usage)
8.2 Edit /webim/libs/config.php, edit $webim_mailbox <- mibew's mailbox (mails are sent from it)
8.3 Edit "Settings -> General -> Email" <- your's mailbox (for left messages)
MikeInMaine:
thank you thank you thank you Inspirer. This worked great. I like using Swift and not relying on unix sendmail.. Maybe this could be permanently integrated into mibew?
Thanks Again!
kannansreenivas:
--- Quote from: Inspirer on May 18, 2010, 10:37:05 PM ---(instructions for Mibew 1.6.3)
8. Setup mailboxes
8.1 Edit /webim/libs/mail.php (setup smtp server, login, passord, ssl usage)
8.2 Edit /webim/libs/config.php, edit $webim_mailbox <- mibew's mailbox (mails are sent from it)
8.3 Edit "Settings -> General -> Email" <- your's mailbox (for left messages)
--- End quote ---
I could not Understand 8.1 and 8.2
except those parts, I done all others. Please be kind enough to elaborate that parts.
At this stage, when I send offline send, I get the error message as follows.
Warning: require_once(Swift/lib/swift_required.php) [function.require-once]: failed to open stream: No such file or directory in /home/careerja/public_html/chat/libs/mail.php on line 22
Fatal error: require_once() [function.require]: Failed opening required 'Swift/lib/swift_required.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/careerja/public_html/chat/libs/mail.php on line 22
Also, when I click on forget pass, then also get some error..
Kindly help...
Thank You
Eddybaur:
You get this error because of you not installing Swiftmailer properly. Although this is something i shouldn't be assisting you with, 8.1 Means to look in the /webim/libs/mail.php file and put your SMTP information in. The server, username and password, and whether or not it uses SSL security feature. 8.2 is to just edit $webim_mailbox="to your email".
You'd change the part i just quoted.
kannansreenivas:
I entered all, I give gmail id in config.php
I get the following error while sending mail when chat is ofline
Warning: fsockopen() [function.fsockopen]: unable to connect to ssl://smtp.gmail.com:465 (Connection timed out) in /home/careerja/public_html/webim/libs/Swift/lib/classes/Swift/Transport/StreamBuffer.php on line 233
Fatal error: Uncaught exception 'Swift_TransportException' with message 'Connection could not be established with host smtp.gmail.com [Connection timed out #110]' in /home/careerja/public_html/webim/libs/Swift/lib/classes/Swift/Transport/StreamBuffer.php:235 Stack trace: #0 /home/careerja/public_html/webim/libs/Swift/lib/classes/Swift/Transport/StreamBuffer.php(70): Swift_Transport_StreamBuffer->_establishSocketConnection() #1 /home/careerja/public_html/webim/libs/Swift/lib/classes/Swift/Transport/AbstractSmtpTransport.php(101): Swift_Transport_StreamBuffer->initialize(Array) #2 /home/careerja/public_html/webim/libs/Swift/lib/classes/Swift/Mailer.php(74): Swift_Transport_AbstractSmtpTransport->start() #3 /home/careerja/public_html/webim/libs/mail.php(47): Swift_Mailer->send(Object(Swift_Message), Array) #4 /home/careerja/public_html/webim/leavemessage.php(114): webim_mail('kannan.sreeniva...', 'me@me.com', 'Question from V...', 'Your have a mes...') #5 {main} thrown in /home/careerja/public_html/webim/libs/Swift/lib/classes/Swift/Transport/StreamBuffer.php on line 235
Navigation
[0] Message Index
[#] Next page
Go to full version