Mibew Messenger Community
September 04, 2010, 02:16:32 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Mail 1.6.3: Setting up mail through SMTP (using swiftmailer)  (Read 802 times)
0 Members and 1 Guest are viewing this topic.
Inspirer
Mibew Staff Member
Native
*****
Posts: 210


« on: May 18, 2010, 05:37:05 PM »

(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)
Logged

Inspired
MikeInMaine
Jr. Member
**
Posts: 2


« Reply #1 on: June 01, 2010, 11:35:05 AM »

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!

Logged
kannansreenivas
Jr. Member
**
Posts: 3


« Reply #2 on: July 21, 2010, 04:10:44 AM »

(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)


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
Logged
Eddybaur
Mibew Staff Member
Native
*****
Posts: 228

Mibew Member


WWW
« Reply #3 on: July 21, 2010, 02:13:44 PM »

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.
Logged
kannansreenivas
Jr. Member
**
Posts: 3


« Reply #4 on: July 31, 2010, 01:21:46 AM »

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
Logged
kannansreenivas
Jr. Member
**
Posts: 3


« Reply #5 on: July 31, 2010, 04:55:47 AM »

My codings are as follows in mail.php
$transport = Swift_SmtpTransport::newInstance('smtp.gmail.com','465', 'ssl') and I get the above error

user and pass are correct. Please help
Logged
Inspirer
Mibew Staff Member
Native
*****
Posts: 210


« Reply #6 on: August 13, 2010, 01:46:21 AM »

It seems your hosting provider doesn't allow outgoing connections. If you have ssh access, try to login remotely and ping google.com, or download some file.
Logged

Inspired
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 22.134 seconds with 18 queries.