General > Support
Mibew not send email does not work LOCAWEB domain
faf:
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:
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:
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 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:
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.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version