Help - Search - Members - Calendar
Full Version: Problems Importing Mail With Post By Email
Web Design Seo Forum > 3D Web Design English Forum > Joomla Extensions
Pages: 1, 2, 3
Web Design Seo
Edited by admin:
Post here your questions about Post by Email Pro


Цитат(MidlandsDesign @ Jul 14 2011, 11:14 AM) *
Hi.
Is this available for Joomla 1.6 yet?
Thanks :-)


MidlandsDesign, Yes, now Post By Email Pro support Joomla 1.7 and Joomla 1.6. I just upload nevest version to file directory. You can read here about latest changes in pro version for joomla 1.7.
oleo
Hi all,
I bought and I've just installed Post by Email. I have configured an email account but PostByEmail is not able to successfully download the mail. The login data are correct, because trying changing them I've the "login failed" error.
I've also tried with the test account: I've sent a mail but the component is not able to retrieve it.
Any ideas?
oleo
UPDATE: Now it seems to download emails, even if it has a strange behavior: always download one mail from the server without deleting it, despite are present 3 mails on the mail box.
In any case, does not publish the mails as articles.

Morover, importing all mails I've the XML error "The XML response that was returned by the server is invalid" than it stays on an infinite loop.

PS: Launching the cron job I've this output:
CODE
[root@95 ~]# /usr/bin/php -q /var/www/vhosts/mediamenteweb.it/subdomains/jedi/httpdocs/administrator/components/com_post_by_email/cron.post_by_email.php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/lib/php/modules/ixed.5.1ts.lin' - /usr/lib/php/modules/ixed.5.1ts.lin: wrong ELF class: ELFCLASS64 in Unknown on line 0
PHP Deprecated:  Directive 'safe_mode' is deprecated in PHP 5.3 and greater in Unknown on line 0
PHP Fatal error:  Class 'JRequest' not found in /var/www/vhosts/mediamenteweb.it/subdomains/jedi/httpdocs/libraries/joomla/session/session.php on line 453

Fatal error: Class 'JRequest' not found in /var/www/vhosts/mediamenteweb.it/subdomains/jedi/httpdocs/libraries/joomla/session/session.php on line 453
[root@95 ~]#
Web Design Seo
oleo, what type of server is this? Is not hosted maybe, is on your own server (home pc) ?
oleo
QUOTE (Web Design Seo @ Oct 28 2011, 01:27 PM) *
oleo, what type of server is this? Is not hosted maybe, is on your own server (home pc) ?


It's a CentOS virtual server, hosted by ARUBA, a big italian ISP.
After many many tests, now it's working! I don't know how!!
Now I'm experiencing problems with mails sent as html. PostBy
Mail retrieves the text but it stops when find a number or an accented letter. No problems with mail in plain text.
Next step: testing the attachments.

Morover, how to retrieve mail automatically on a server without cron? Is possible to have a link like "www.myserver.com/path_to/script.php" that retrieves mails without the necessity to be logged in joomla?

oleo
About attachments: setting the directory to "images/stories" I've the error "The directory exists / is writeable: NO / NO". Which is the base path of this option?

UPDATE: I set the directory to "." which is writable. I'm not able to view attachment. I send a mail in plain text with a jpg image ("fabio.jpg") and the string "[fabio.jpg]" inside the text. Result: I see the text [fabio.jpg].
Web Design Seo
oleo:

Цитат
I can't sell this feature to my clients

1. You dont have rights to sale or resale extension to your clients, this component is not your property! To buy working component, to say "i want refund" and after this to resale working component "to my clients" is presumptuous!

Цитат
After 14 hours of tests

2. You can work or "test" if you want 100 days or 10 years. The way to recieve support is only one - red button "Extensions Support" at top in this forum! Create one temporary admin account for us to see and resolve your problem. If requirements are achieved and component not work, i will send you money back.

3. You say that: this server is on "biggest italian vps company". And i say you that on all over ten vps servers where we have accounts (all accounts are on different companies and in different countries, we need this for different c class ip addresses) all vps companies have difficulty to make joomla working with emails, with or without mail server.

Hosting companies do not care what you do with VPS server - It is your virtual computer, they only install your operating system and configuration must be made from client - you.

Component dont work only on not well configured servers!
Please, read our Support Of Paid Extensions terms and TOS. We cant configure and dont want to configure every vps server or cutom server at price of some paid extension. This work wil cost many hours and of croos is not included in price of any one extension.
oleo
1) I know that I can't re-sell your component as is or modified but I'm developing joomla websites for my clients. Can I install the component in these websites?

2) I've read that post and I've done what it says, but I haven't a particular error. When a behaviour is not fully reproducible I think some tests are necessary to identify the problem. Which are the requirements exactly?

3) I don't understand this point. What do you mean when you say "all vps companies have difficulty to make joomla working with emails"? Morover, my clients doen't have a VPS, so your component must work inside a joomla installation in a normal hosting environment. You don't say that PostByMail need a server or a vps.


You say: "Component dont work only on not well configured servers!" and "3D Web Design guarantee that all of extensions - Paid and free are working at normal Joomla configuration at normal shared hosting" so I can test your component inside a normal shared hosting (supporting joomla of course) where I can't configure anything and it must work. Am I true?
Web Design Seo
Цитат
Which are the requirements exactly?


Please, read description of product. On every page (product, guide and description of functions) is written this text:
Цитат
Requirements of Post by email
PHP 5.2 + and MBString PHP extension: must be installed, enabled and properly configured.


So, requirements are:
- Joomla 1.5/1.6/1.7
- of cross Joomla 1.5/1.6/1.7 requirements must be achieved also
- PHP v.5.2 and over
- MBString (not only installed, must be working)

So, just give us access to see where and what, and your problem will be resolved in monday (as is described in our TOS, we dont have 24/7 support, only in working time).
oleo
Please, answer to my first question: can I install your component on websites of my clients? [NO] [YES] [YES, buying the component for each installation]

And what about point 4? You say I can use PostByEMail in normal shared hosting. That's my need. As you know, in normal shared hosting you can't configure php. I have to install it in a shared hosting with the same phpinfo of my vps (regarding the MBString section) than it must work at the first shot. Am I true?

These are the core questions for which I'm waiting for an answer.

All requirements are properly fulfilled.
You say "(not only installed, must be working)": can you provide further details?
I'll give you full access to the joomla installation but you should tell me what you do because I'll have to reproduce it on next installations.
Web Design Seo
Цитат
Please, answer to my first question: can I install your component on websites of my clients?


Yes of cross.

Thank you for test account, will test your system and i will send you email when ready.
Ivan Stamenov
1) I can't reproduce your problem with gmail. I am importing plaint text / HTML messages with or without attachments with no problem.
2) The accented letters or the numbers are not special for PBM in any way. See this article in French in your site:
Код
jedi.mediamenteweb.it/administrator/index.php?option=com_content&view=article&layout=edit&id=145

It has just been imported through PBM.
3) The PBM uses the built-in PHP function quoted_printable_decode. The only explanation for this behaviour I can think of is:
Код
http://php.net/manual/en/function.quoted-printable-decode.php


(the second post from the bottom up). As you can see most likely this is a problem with your email system you send e-mails from. Not with PBM. You can try solving this problem by uncommenting line 446 in the controller.php (//$content = str_replace(array('= =', "=\r\n=", "=\n="), '', $content);
4) I can't reproduce this problem too. If the email message is in the inbox, it is parsed everytime the PBM is run, unless the message is deleted.
5) This is absolutely normal. Your content is displayed as a HTML. All (single or multiple) blank spaces in HTML (tabs, spaces, new line characters, etc.) are displayed as a single space character. Use HTML markup if you want to have some formatting in your article.
6) In order for the attachments to work, you MUST specify an existing subdirectory of /images/ with the proper privileges, which MUST NOT start or end with slash[/]. PBM works fine with multiple attached files in a single e-mail message.

The errors you have quoted when starting the cron job has nothing to do with PBM but with your Joomla installation.
Web Design Seo
Oleo, we are ready.

Please, send me one blank email (email must be sent from email box from your order) and i will send you updated version of component.
oleo
Today I'm experiencing a completely different behaviors! Are you sure you haven't done anything?
I've sent 3 test mail and it seems to be working... I'll do deep tests to be sure that PBM works in any conditions.

I think that would be usefull to have more informations in the user guide about the attachment directory settings.

So PBM seems to be perfect, except for a thing: is it possible to have a php script (that can be launched without logging to joomla) that downloads/imports mails?
oleo
Цитат(Ivan Stamenov @ Oct 31 2011, 12:43 PM) *
3) The PBM uses the built-in PHP function quoted_printable_decode. The only explanation for this behaviour I can think of is: php.net/manual/en/function.quoted-p...able-decode.php
(the second post from the bottom up). As you can see most likely this is a problem with your email system you send e-mails from. Not with PBM. You can try solving this problem by uncommenting line 446 in the controller.php (//$content = str_replace(array('= =', "=\r\n=", "=\n="), '', $content);


Ok, it works! Consider to add this tip to the user guide!
Web Design Seo
Цитат(oleo @ Oct 31 2011, 03:46 PM) *
So PBM seems to be perfect, except for a thing: is it possible to have a php script (that can be launched without logging to joomla) that downloads/imports mails?


In guide is written:

Цитат
How to setup Cron?

Here are two ways to schedule your mailboxes: Open cron jobs page in cpanel and set up cron:
Код
curl -sS "http://your-post-by-email-site.com/administrator/components/com_post_by_email/cron.post_by_email.php" >> /dev/null


or in this way:

Код
/usr/local/bin/php -q /relative path to host directory/public_html/administrator/components/com_post_by_email/cron.post_by_email.php >> /dev/null

oleo
QUOTE (Web Design Seo @ Oct 31 2011, 04:25 PM) *
In guide is written:


I was talking about a php script that can be launched via web browser. Can I launch
CODE
/relative path to host directory/public_html/administrator/components/com_post_by_email/cron.post_by_email.php

via web browser?

EDIT: I think no, because it says "Invalid Token"
oleo
Problems persist with "=".
The following code is the html source of the mail:
CODE
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Il contributo di solidarietà è sparito dalla manovra economica del governo. Ma, nonostante le proteste delle associazioni che rappresentano i disabili e le loro famiglie, è rimasta l'intenzione di recuperare 40 miliardi di euro in tre anni attraverso la riforma assistenziale e fiscale: 4 miliardi nel 2012, 16 nel 2013 e 20 nel 2014. Cifre che tradotte nella pratica suonano come &quot;campane a morto&quot; per chi tutti i giorni è costretto a fare i conti con una sedia a rotelle, un bastone bianco</span>


and this is the resulting article
CODE
<p><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; background-color: #ffffff;">Il contributo di solidarietà è sparito dalla manovra economica del governo. Ma,= nonostante le proteste delle associazioni che rappresentano i disabili e le loro famiglie, è rimasta l'intenzione di recuperare 40 miliardi di euro in tre anni attraverso la riforma assistenziale e fiscale: 4 miliardi nel 2012, 16 nel 2013 e 20 nel 2014. Cifre che tradotte nella pratica suonano come "campane a morto" per chi tutti i giorni è costretto a fare i conti con una sedia a rotelle, un bastone bianco</span></p>


Something goes wrong also with the line uncommented.
Web Design Seo
Цитат(oleo @ Oct 31 2011, 04:31 PM) *
I was talking about a php script that can be launched via web browser. Can I launch
Код
/relative path to host directory/public_html/administrator/components/com_post_by_email/cron.post_by_email.php

via web browser?


Yes, just open url:
Код
mysite.com/administrator/components/com_post_by_email/cron.post_by_email.php

Ivan Stamenov
Цитат(oleo @ Oct 31 2011, 03:40 PM) *
Problems persist with "=".
The following code is the html source of the mail:
Код
<span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; background-color: rgb(255, 255, 255); ">Il contributo di solidarietа и sparito dalla manovra economica del governo. Ma, nonostante le proteste delle associazioni che rappresentano i disabili e le loro famiglie, и rimasta l'intenzione di recuperare 40 miliardi di euro in tre anni attraverso la riforma assistenziale e fiscale: 4 miliardi nel 2012, 16 nel 2013 e 20 nel 2014. Cifre che tradotte nella pratica suonano come &quot;campane a morto&quot; per chi tutti i giorni и costretto a fare i conti con una sedia a rotelle, un bastone bianco</span>


and this is the resulting article
Код
<p><span class="Apple-style-span" style="font-family: Arial, Helvetica, sans-serif; font-size: 13px; background-color: #ffffff;">Il contributo di solidarietа и sparito dalla manovra economica del governo. Ma,= nonostante le proteste delle associazioni che rappresentano i disabili e le loro famiglie, и rimasta l'intenzione di recuperare 40 miliardi di euro in tre anni attraverso la riforma assistenziale e fiscale: 4 miliardi nel 2012, 16 nel 2013 e 20 nel 2014. Cifre che tradotte nella pratica suonano come "campane a morto" per chi tutti i giorni и costretto a fare i conti con una sedia a rotelle, un bastone bianco</span></p>


Something goes wrong also with the line uncommented.


Please send similar e-mail to test_test@3dwebdesign.org so I will be able to examine exactly what's happening.
Web Design Seo
P.S. I change email, use: test_test on 3dwebdesign.org
oleo
I've sent you 2 mails.
The mail with the subject "PBM Test for EQUAL sign 1" is a forward of the previous cited mail and you can see that symbols "=" appear in differents positions. Probably this is a random behaviour.
Ivan Stamenov
Цитат(oleo @ Oct 31 2011, 04:54 PM) *
I've sent you 2 mails.
The mail with the subject "PBM Test for EQUAL sign 1" is a forward of the previous cited mail and you can see that symbols "=" appear in differents positions. Probably this is a random behaviour.



The problem was in PBM indeed. Some of the soft line breaks were broken when unfolding the message thus resulting in the extra '=' chars...

To fix this you have to add the following line right after $message = implode('',$message); on line 555 and just before unfolding the message:

//remove the soft line breaks
$message = str_replace("=\r\n", '', $message);

I've already sent the fixed version of the PBM to the admin. Please send him an empty mail from the mail address you used to purchase PBM in order to receive the updated version.

Best regards,

Ivan Stamenov
oleo
QUOTE (Ivan Stamenov @ Nov 1 2011, 10:19 AM) *
The problem was in PBM indeed.
//remove the soft line breaks
$message = str_replace("=\r\n", '', $message);


Very good, it works!

Now please, help me to have a working link that downloads mails.
My clients don't have cron, so I need to give them a link like "http://www.yourdomain.com/magic_script.php" that can be launched in the browser window without the need to be logged in joomla.
Web Design Seo
I say you previous time this, link is:
Код
http://your-post-by-email-site.com/administrator/components/com_post_by_email/cron.post_by_email.php
oleo
Цитат(Web Design Seo @ Nov 1 2011, 12:09 PM) *
I say you previous time this, link is:
Код
http://your-post-by-email-site.com/administrator/components/com_post_by_email/cron.post_by_email.php


It says "invalid token", as i said.
You can try yourself:
Код
http://jedi.mediamenteweb.it/administrator/components/com_post_by_email/cron.post_by_email.php
Web Design Seo
Switch error reporting at max and open page again. Paste here error.


P.S. I see again your php info and recommend you to use more memory and execution time - increase memory_limit to 64 mb and max_execution_time to more than 30 seconds (60 or more ceconds is recommended to work well images import).
oleo
QUOTE (Web Design Seo @ Nov 1 2011, 12:34 PM) *
Switch error reporting at max and open page again. Paste here error.


No other errors. Only a blank page with the string "Invalid token".
The full html code of the page is the following:
CODE
Invalid Token

(...no html tags).

PHP and Joomla are set to report all error

PS: Memory limit set to 64M.
Web Design Seo
We cant help you without know what error is present.

If at page is no error, serch for error log. If you have not error log in server, send ticket to your host support to activate this over php.ini.

oleo

Hi,
looking at logs I can't see any error.

I've made some tests and I've seen that the file "cron.post_by_email.php" is successfully parsed till this instruction:
echo $controller->importAll();

I've tried to add an "echo" after that line but the code hasn't been executed.
Web Design Seo
You have maybe some ACL component that rewrite permission rights in admin so first check this.

I dont have see this type of error anywhere. Is impossible to find where is the problem without ftp access.
oleo
I don't have any strange component, and no one that rewrite permissions.

The instruction that fails is the following (controller.php - line 373)
CODE
    JRequest::checkToken() or die('Invalid Token');


I'm using Google Chrome but I've tried to launch the command "http://jedi.mediamenteweb.it/administrator/components/com_post_by_email/cron.post_by_email.php" in firefox having a strange effect.
The first time I've launched it, the result was a redirect to "http://jedi.mediamenteweb.it/administrator/components/com_post_by_email/index.php" with the error "NOT FOUND"
CODE
Not Found
The requested URL /administrator/components/com_post_by_email/index.php was not found on this server.
Apache/2.2.3 (CentOS) Server at jedi.mediamenteweb.it Port 80


I've to launch it the second time to have the error "Invalid Token".

Then I've tried in "Private Browsing" having the same behaviour: first time - redirect to index.php and "file not found". Second time - invalid token.
oleo
Removing the istruction "JRequest::checkToken() or die('Invalid Token');" the script imports the emails printing the following:
CODE
17 emails imported (3dweb TEST HERE) in 1 seconds.
]]>Close this window
]]>
Web Design Seo
On all our test servers is no such a problem. If for you this work, keep this change in code and just use extension.
oleo
Hi.
I still have problems with PBM and attachments.
I send a mail with the image news.jpg atteched.
PBM save the image in the correct folder "[root]/images/stories/aggiornamenti" but inside the article it try to load the image from "[root]/components/com_post_by_email/images/stories/aggiornamenti"
Please help me to correct this!

Moreover I'm unable to import mail sent by MacOs and I don't know why.
Richard30
I don't see anything on Publish duration.

I sorry, Idon't know much about CRON. Thank you for explaining.
Web Design Seo
You have option "Publish duration" for content. This option is like options in content items in joomla. Enter some number (days) and after this number of days content will be unpublished.

About cron: In first post in this topic is explained how to activate cron. You have cpanel in your host?
Ivan Stamenov
Цитат(oleo @ Nov 15 2011, 06:56 PM) *
Hi.
I still have problems with PBM and attachments.
I send a mail with the image news.jpg atteched.
PBM save the image in the correct folder "[root]/images/stories/aggiornamenti" but inside the article it try to load the image from "[root]/components/com_post_by_email/images/stories/aggiornamenti"
Please help me to correct this!

Moreover I'm unable to import mail sent by MacOs and I don't know why.


Hi, oleo.

We have updated the PBM to use a more robust approach when defining the attachment's relative path. Please contact the admin in order to receive the updated version.

As for the MacOs mail, please send us a test e-mail message at test_test@3dwebdesign.org...

Best regards!
Richard30
"Invalid token".
I am getting the Invalid token message hosting with GoDaddy. Joomla 1.7.2 and Pro version of Post.

http://mysite.com/administrator/components...st_by_email.php
(It's a private site and I don't want the name posted, but it was used, not mysite.com).
Web Design Seo
Try to comment line 373 in controller.php

Код
JRequest::checkToken() or die('Invalid Token');

to:
Код
// JRequest::checkToken() or die('Invalid Token');
Richard30
I have Pro version. When I use the below URL I get the file cannot be found. If I don't put >>/dev/null I get Invalid Token. What is [/code]?

What should I do?

Way 2:

CODE
/usr/local/bin/php -q /relative path to host directory/public_html/administrator/components/com_post_by_email/cron.post_by_email.php >> /dev/null

[/quote]
Web Design Seo
try to open url in browser:
Код
site.com/administrator/components/com_post_by_email/cron.post_by_email.php


1. If file not found, reinstall extension - this file is included in extension.

2. If you have error "Invalid Token" comment line 373 in controller.php
Код
JRequest::checkToken() or die('Invalid Token');

to:
Код
// JRequest::checkToken() or die('Invalid Token');
Chris Grant
I have just purchased and installed post_by_email-1.3.5-jomsocial-2-support-without-readmore.zip

No errors on installation. As sson as I go to the menu 'Component / post-by-email I get the following error

Fatal error: Call to a member function getUserStateFromRequest() on a non-object in /home/bargesor/public_html/administrator/components/com_post_by_email/controller.php on line 61

My setup is as follows:

PHP Built On Linux leicester.eukhosting.net 2.6.18-338.12.1.el5.lve0.8.34PAE #1 SMP Tue Jun 7 17:41:19 EEST 2011 i686
Database Version 5.0.92-community
Database Collation utf8_general_ci
PHP Version 5.2.9
Web Server Apache
WebServer to PHP Interface cgi
Joomla! Version Joomla! 1.7.2 Stable [ Ember ] 17-Oct-2011 14:00 GMT
Joomla! Platform Version Joomla Platform 11.2.0 Stable+Modified [ Omar ] 27-Jul-2011 00:00 GMT
User Agent Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6 GTB7.1

mbstring
Multibyte Support enabled
Multibyte string engine libmbfl
Multibyte (japanese) regex support enabled
Multibyte regex (oniguruma) version 4.4.4
Multibyte regex (oniguruma) backtrack check On

It seems I have all the right requirements for this module.

Please advise, Thanks and regards

Chris
Web Design Seo
Your version is non-pro: http://3dwebdesign.org/en/joomla-extension...for-joomla.html - Price 19$
Your version support only joomla 1.5 and you are try to use it on Joomla 1.7.

Pro version is with Price 29$: http://3dwebdesign.org/post-by-email-pro

If you want, is possible to upgrade to pro, pay to our paypal account (admin at our website) only change (10 usd) and send me email after this to update your order.


P.S. This question will be moved to support topic of non-pro version in next hours.
aelsharawi
HINT:
make multiple emails,every one for a separate forum.
e.g if the user want to post to { Post By Email For Joomla } forum,he will mail: Post_By_Email_For_joomla@aaaa.com

I hope to have this feature please.
thx
andhalsa
Is it posible to make a list over valid senders, to rule out any unauthorized e-mails?
In my case i want to use it for microbloging, but don't want to publish any thing from other than my own email-adress.
I allso need the autopublish function so I can't turn that off.

Andreas
Web Design Seo
Is possible, but is not developed yet. If will be developed, will be for Pro version, not for standart version that is in details on this page.
andhalsa
Ok thanx.
I also have a problem about subject utf8 encoding.
Do you have a fix for usin æ ø å in the subject?
It works fine in the content but not in the subject.

Mvh
Web Design Seo
This can be due on many things - configuration of email box, joomla language and language installed on current pc where you read message. Encoding of site must be utf-8 also.
aelsharawi
about sending an attachment:

In kunena posting I want tobe sure from the method a normal user can send an email to the kunena forum:
1-does he need to do anything beside attaching the picture to the mail ???? i.e does he need to put [qqqq.img] tage

2-does the plugin has a mailing list feature ,I.e new post sent automatically to the users


3-what if a guest send an email to the "email of the plugin",does the program ignore it ,post it ??

thx
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2019 Invision Power Services, Inc.

Web Analytics