Author Topic: Mibew not send email does not work LOCAWEB domain  (Read 19639 times)

0 Members and 1 Guest are viewing this topic.

Rezo_Sama

  • Full Member
  • ***
  • Posts: 10
  • O mal do ser humano e o proprio ser humano
Mibew not send email does not work LOCAWEB domain
« on: February 06, 2014, 11:57:07 AM »
 :) Good afternoon
Well my problem and the next, my mibew 1.6.9 does not send any email if you have off- line chat and ask people to email , subject, etc. , which says ok but not sending the email arrives understand, or does not send or send but not enough and also chat if the person asking to send the conversation in the chat also does not save , and mibew own does not send notifications by e-mail or chat unless I know mibew record chat conversations but does not send email .
I have done this process with this topic :

http://mibew.org/forums/index.php?topic=190873.0

and

http://www.joomlaclube.com.br/site/forum/viewtopic.php?f=17&t=22304

Not go forward and does not work , observation has an error in this line almost 2 topics :

if ( eregi ( ' $ tempsite.ws | locaweb.com.br $ | hospedagemdesites.ws $ | websiteseguro.com $' , $ _SERVER [ HTTP_HOST ] ) ) {
$ EmailSender = '$ webim_mailbox ' ; } else { $ EmailSender = " $ webim_mailbox " ; }

@ Mail ( $ toaddr , $ real_subject , wordwrap ( myiconv ( $ webim_encoding , mail_encoding , $ body) , 70 ) , $ headers , " - r " $ EmailSender . ) ;

Note that this : webim_mailbox , how dumb the code , would be the right : mibew_mailbox . Changed too and not decided .

Note : a folder on my MIBEW 's called this my site1385608919 that name. Note: already edited the file into folder : lib > config.php was thus:

mibew_mailbox $ = " mibew@yourdomain.com ";
$ mail_encoding = " utf - 8 " ;

Sorry but do not know English, up to read posts of you use google translator entendeo 90-95% and other in English.
Done according as asked me following the rules.
Thanks for the tip.
Ae mibew downloaded the 2.0 but I could not install anything put in another topic.
Grateful.  8)

Fernando .
« Last Edit: February 06, 2014, 02:04:14 PM by Rezo_Sama »

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Mibew not send email does not work LOCAWEB domain e CSRF failure
« Reply #1 on: February 06, 2014, 01:08:26 PM »
First of all, don't mix Google Translator with a complicated sentences. We can't understand almost anything in your post.  :-\

Next thing. Basic rule: one problem = one post. This forum is a place where visitors often can find the answers to their questions using the search. One should respect other people.

Please, edit your original post on CSRF failure applying Google Translate to short and simple sentences. And make a new post on your troubles with email. Then we'll try to help you with both issues.

Rezo_Sama

  • Full Member
  • ***
  • Posts: 10
  • O mal do ser humano e o proprio ser humano
Re: Mibew not send email does not work LOCAWEB domain
« Reply #2 on: February 06, 2014, 02:06:39 PM »
Ja edited this ok now?

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Mibew not send email does not work LOCAWEB domain
« Reply #3 on: February 06, 2014, 02:59:25 PM »
Ja edited this ok now?

So-so... :-\

Back to subject. You can not send emails from Mibew at all, right?

As it was written before Mibew uses the standard PHP function mail to send email notifications. So the first thing you should do is to check server logs.

As of recipe you've mentioned, it's weird and outdated. And we've already implemented much more reliable solution for sendmail_from in Mibew Messenger 1.6.7.

Rezo_Sama

  • Full Member
  • ***
  • Posts: 10
  • O mal do ser humano e o proprio ser humano
Re: Mibew not send email does not work LOCAWEB domain
« Reply #4 on: February 06, 2014, 03:19:40 PM »
yes, I can not send email to nothing, the server logs are where within the mibew or concerns public_html folder? it says please, oh I see and post the log here if possible, but it is outdated but it was only one that had us doing a more updated rsrsrsr.

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Mibew not send email does not work LOCAWEB domain
« Reply #5 on: February 06, 2014, 03:48:52 PM »
One more time. Mibew uses standard function to send emails. If you are unable to send emails, the problem is on the system level, not on the level of Mibew. Check logs of your web server. Check logs of your mail server. Replace @mail with mail to get additional output.

Rezo_Sama

  • Full Member
  • ***
  • Posts: 10
  • O mal do ser humano e o proprio ser humano
Re: Mibew not send email does not work LOCAWEB domain
« Reply #6 on: February 06, 2014, 05:28:47 PM »
I did this they asked , notify.php accessed the file, this my way:

log_notification function ( $ locale , $ kind , $ to , $ subj , $ text , $ refop , $ link )
{
global $ mysqlprefix ;
$ query = sprintf (
" insert into $ { } mysqlprefix chatnotification ( locale , vckind , vcto , vcsubject , TMessage , refoperator , dtmcreated ) values ​​( '% s' , '% s' , '% s' , '% s' , '% s' , % s , % s ) " ,
mysql_real_escape_string ( $ locale , $ link )
mysql_real_escape_string ( $ kind , $ link )
mysql_real_escape_string ( $ to , $ link )
mysql_real_escape_string ( $ subj , $ link )
mysql_real_escape_string ( $ text , $ link )
$ refop ? intval ( $ refop ) : "0" ,
" CURRENT_TIMESTAMP ");

perform_query ( $ query , $ link ) ;
}

mibew_mail function ( $ toaddr , reply_to $ , $ subject , $ body , $ link )
{
global $ mibew_encoding , $ mibew_mailbox , mail_encoding $ , $ current_locale ;

$ headers = "From: $ mibew_mailbox \ r \ n"
. " Reply-To : " . myiconv ( $ mibew_encoding , mail_encoding $ , $ reply_to ) . " \ r \ n"
. " Content- Type: text / plain ; charset = $ mail_encoding \ r \ n"
. 'X - Mailer : PHP / ' . phpversion ();

real_subject $ = "= ? ' . $ mail_encoding . " 'B' " . base64_encode ( myiconv ( $ mibew_encoding , mail_encoding $ , $ subject ) ) . "= ";

$ body = preg_replace ( " / \ n / " , " \ r \ n" , $ body ) ;

log_notification ( $ current_locale , "mail " , $ toaddr , $ subject , $ body , null , $ link ) ;

$ old_from = ini_get ( ' sendmail_from ' ) ;
ini_set ( ' sendmail_from ' , $ mibew_mailbox ) ;
@ mail ( $ toaddr , $ real_subject , wordwrap ( myiconv ( $ mibew_encoding , mail_encoding $ , $ body ) , 70 ) , $ headers ) ;
if ( isset ( $ old_from ) ) {
ini_set ( ' sendmail_from ' , $ old_from ) ;
}
}

mibew_xmpp function ( $ toaddr , $ subject , $ text , $ link )
{
global $ current_locale ;
log_notification ( $ current_locale , " xmpp " , $ toaddr , $ subject , $ text , null , $ link ) ;


In part : @ email , put : email or my email .... @ betainfo.info still did not work , put my email , the page of Envido to chat offline opens all blank. Edited and sent from that tutorial that you said it was old and changed the @ email and also did not work :

< ? php
/ *
 * Copyright 2005-2014 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the " License" ) ;
 * You may not use this file except in compliance with the License.
 * You may Obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing , software
 * Distributed under the License is distributed on an " AS IS " BASIS ,
 * Warranties WITHOUT OR CONDITIONS OF ANY KIND , either express or implied .
 * See the License for the specific language governing permissions and
 * Limitations under the License.
 * /

log_notification function ( $ locale , $ kind , $ to , $ subj , $ text , $ refop , $ link )
{
global $ mysqlprefix ;
$ query = sprintf (
" insert into $ { } mysqlprefix chatnotification ( locale , vckind , vcto , vcsubject , TMessage , refoperator , dtmcreated ) values ​​( '% s' , '% s' , '% s' , '% s' , '% s' , % s , % s ) " ,
mysql_real_escape_string ( $ locale , $ link )
mysql_real_escape_string ( $ kind , $ link )
mysql_real_escape_string ( $ to , $ link )
mysql_real_escape_string ( $ subj , $ link )
mysql_real_escape_string ( $ text , $ link )
$ refop ? intval ( $ refop ) : "0" ,
" CURRENT_TIMESTAMP ");

perform_query ( $ query , $ link ) ;
}

mibew_mail function ( $ toaddr , reply_to $ , $ subject , $ body , $ link )
{
global $ mibew_encoding , $ mibew_mailbox , mail_encoding $ , $ current_locale ;

$ headers = "From: $ mibew_mailbox \ r \ n"
. " Reply-To : " . myiconv ( $ mibew_encoding , mail_encoding $ , $ reply_to ) . " \ r \ n"
. " Content- Type: text / plain ; charset = $ mail_encoding \ r \ n"
. 'X - Mailer : PHP / ' . phpversion ();

real_subject $ = "= ? ' . $ mail_encoding . " 'B' " . base64_encode ( myiconv ( $ mibew_encoding , mail_encoding $ , $ subject ) ) . "= ";

$ body = preg_replace ( " / \ n / " , " \ r \ n" , $ body ) ;

log_notification ( $ current_locale , "mail " , $ toaddr , $ subject , $ body , null , $ link ) ;
if ( eregi ( ' $ tempsite.ws | locaweb.com.br $ | hospedagemdesites.ws $ | websiteseguro.com $' , $ _SERVER [ HTTP_HOST ] ) ) {
        $ EmailSender = '$ webim_mailbox ' ; } else { $ EmailSender = " $ webim_mailbox " ; }

$ old_from = ini_get ( ' sendmail_from ' ) ;
ini_set ( ' sendmail_from ' , $ mibew_mailbox ) ;
@ mail ( $ toaddr , $ real_subject , wordwrap ( myiconv ( $ mibew_encoding , mail_encoding $ , $ body ) , 70 ) , $ headers , " - r " $ EmailSender . ) ;
if ( isset ( $ old_from ) ) {
ini_set ( ' sendmail_from ' , $ old_from ) ;
}
}

mibew_xmpp function ( $ toaddr , $ subject , $ text , $ link )
{
global $ current_locale ;
log_notification ( $ current_locale , " xmpp " , $ toaddr , $ subject , $ text , null , $ link ) ;
}

>


A single observation, my folder I installed 1.6.9 Mibew not call mibew calls : site1385608919 and my data base of the flame also phpMyAdmi : site1385608919 . In locaweb hosting server does not allow to create database in mysql or in phpmyadmin , so it allows you to create tables , so as it already by default create a database called : al site1385608919 installed mibew with name and folder configurations : site1385608919 .
I did what I did @ the email , if it is not correct do not blame me because I do not know much about php .

Rezo_Sama

  • Full Member
  • ***
  • Posts: 10
  • O mal do ser humano e o proprio ser humano
Re: Mibew not send email does not work LOCAWEB domain
« Reply #7 on: February 06, 2014, 06:55:16 PM »
 8) Good afternoon , converesi with the Powerball lodging staff, and they told me this:

Good morning Fernando ,


I understand that the MIBEW has a function for sending e - mail , however this function should follow the patterns of transmission of RFC 822 , otherwise shipping will be unfulfilled.

If MIBEW use the Mail ( ) function, you need an email of your own as the sender , and the same e- mail should be used in the return -path .

More information about using the Mail () function of PHP:

http://goo.gl/wIV2zH

If you are using an external account e- mail to make sending e- mail , you must use an authenticated method.

Since MIBEW is an external authoring tool and not the Powerball , there is no way we pay support to your setup .

There is no lock for sending emails through your hosting . Through the interaction Analyst Matheus Silva , sending emails through your hosting is normally done , so you need to adjust MIBEW according to the rules of RFC 822 . Such information should be obtained from mibew.org forum .

We count on your understanding of the subject .

Having doubts are available .


Answer me this, I use email domino own , so I tested also gmail and hotmail emails and same problem , is actually something of locaweb . This link explains in but I did not :

http://wiki.locaweb.com.br/pt-br/Como_enviar_e-mails_com_a_fun%C3%A7%C3%A3o_mail%28%29_do_PHP

grateful
Fernando.

faf

  • Mibew Staff Member
  • Native
  • *****
  • Posts: 951
    • Mibew Messenger
Re: Mibew not send email does not work LOCAWEB domain
« Reply #8 on: February 06, 2014, 07:22:15 PM »
  • Mibew sends emails in compliance with RFC822, though one should set the correct settings in configuration;
  • Read this text before writing new posts. Especially such long and unclear.

Rezo_Sama

  • Full Member
  • ***
  • Posts: 10
  • O mal do ser humano e o proprio ser humano
Re: Mibew not send email does not work LOCAWEB domain
« Reply #9 on: February 06, 2014, 09:04:45 PM »
Ok, yes I have read, so have a detail, I am free to express myself in this way, being nice and posting all details, the problem is easier to solve, posted the code to see if there was any mistake. If not this taking so until then and complicated. The freedom and expression and not a form.
I will try to solve the same problem myself.
Grateful.
Fernando.

Rezo_Sama

  • Full Member
  • ***
  • Posts: 10
  • O mal do ser humano e o proprio ser humano
Re: Mibew not send email does not work LOCAWEB domain
« Reply #10 on: February 09, 2014, 12:53:50 AM »
Good evening, Can anyone help with my problem and many already used the edited SwiftMailer and nothing, not with gmail, hotmail, or my own domino. There are many people with this problem, does not send mail about this chat off line or email notification. Some code to integrate or something?
Not paying rsrsrsrs. Not possible and that I am I have this problem.