Results 1 to 14 of 14

Thread: need help with zad_sendnews

  1. #1
    New user
    Join Date
    03-16-12.
    Posts
    1

    Default need help with zad_sendnews

    hi all,
    today I tried to get run with the extension zad_sendnews. There doesn't seem to be a tutorial or any help file. Is there anybody, who got experinces in this extension?

    bye,
    Clemens

  2. #2
    New user
    Join Date
    08-21-11.
    Posts
    19

    Default Re: need help with zad_sendnews

    I'm sorry, I didn't have time to create an user guide for this extension.

    Anyway, I'll try to help you: what problems did you find?

  3. #3
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need help with zad_sendnews

    Basically, I got it working fine.... You need a mailbox to send your mail to. Then you configure the zad_sendnews to "read" that mailbox (I used blog@thyon.com) and of course you need IMAP module installed for PHP (to access the function that will read the mailbox). I tried it with and without any additional settings, but it seems it does need some filters to operate, not sure what the minimum is.

  4. #4
    New user
    Join Date
    08-21-11.
    Posts
    19

    Default Re: need help with zad_sendnews

    Prerequisites for using Sendnews extension:
    1) IMAP php module installed in your system;
    2) knowledge of mail server settings for the mailbox you want to use.

    Steps for setting a Sendnews manager:
    1) click on Send News link in the backend module list (left side of the page);
    2) on the Send News page, click on NEW link to create a new sendnews manager;
    3) add the required settings:
    - title: the news send manager name;
    - server name: your mail server name;
    - server port: 0 (default);
    - server type: POP3 or IMAP;
    - security: choose server security protocol;
    - username/password: user/password to access the mailbox;
    - folder: leave blank (default);
    - news archive: choose the news archive where to post the imported news;
    - author: choose a site user as author of the imported news;
    - attachements: if allowed, choose the site folder where save files;
    - check time: choose time interval for checking mailbox;
    - automatic publishing: choose when to publish imported news;
    - final action: delete emails is the default;
    - enable: enable the sendnews manager.

    You don't need to add any rules.

    To test the sendnews manager:
    1) send a new email to the configured mailbox;
    2) wait the time interval set in "check time" field;
    3) in the "System log", look for a message like "Polling sendnews manager ...": if it is present, the sendnews manager is running;
    4) in the "System log", look for an error message immediately after the previous: if it is present, the login to the mailbox failed.

    When you find a login error to your mailbox:
    - check user/password;
    - check the server type (POP3 or IMAP);
    - try another security procol (usually, you can try: NONE, SSL without certificates, TSL without certificates, TLS if present without certificates).

  5. #5
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need help with zad_sendnews

    Is there a w ay to manually run the checker. Having out an hour seems illogical.

  6. #6
    New user
    Join Date
    08-21-11.
    Posts
    19

    Default Re: need help with zad_sendnews

    Quote Originally Posted by thyon
    Is there a w ay to manually run the checker. Having out an hour seems illogical.
    The time check is based on the Contao cron.

    So, you can:
    1) edit the file /system/config/localconfig.php and set
    $GLOBALS['TL_CONFIG']['cron_hourly'] = 0;
    2) run manually the cron, i.e. load this page in your browser:
    http://www.yoursite.com/cron.php

    Anyway, there is also a database lock of five minutes for cron executions. So you can run cron in this way only every five minutes.

  7. #7
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need help with zad_sendnews

    Ok. But perhaps we can just add an admin button to run the cron command manually. That way an administrator can test a news item and if everything is ok, the cron can take over hourly.

  8. #8
    New user
    Join Date
    08-21-11.
    Posts
    19

    Default Re: need help with zad_sendnews

    Quote Originally Posted by thyon
    Ok. But perhaps we can just add an admin button to run the cron command manually. That way an administrator can test a news item and if everything is ok, the cron can take over hourly.
    Ok. Done.

    See the new 1.0.2 release of zad_sendnews.

  9. #9
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need help with zad_sendnews

    Thanks for that...

    When can we expect a new update? The default scrubbing of email doesn't work. Also, when I add my own rules to scrub, it leaves some tags in the content. And we have to solve the image problem... Most people just want to email a photo with some text to get a fully working news story. Without the image assignment, the news isn't useful. Most people need this function because you cannot upload from an iPhone, so this would be the only way to get images onto the CMS.

    Would you also consider writing a version that just scans for images and files and uploads them to the file manager, nothing else... E.g.

    email images and PDFs to: files @ thyon.com and it will upload them to a folder on the CMS. Then the client can login to contao and move the files in place in the file manager.

  10. #10
    New user
    Join Date
    08-21-11.
    Posts
    19

    Default Re: need help with zad_sendnews

    Quote Originally Posted by thyon
    When can we expect a new update?
    Really, I don't know. I'm very busy, now.
    I hope to have time to work on these things on the next month...

  11. #11
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: need help with zad_sendnews

    Would you also consider writing a version that just scans for images and files and uploads them to the file manager, nothing else... E.g.

    email images and PDFs to: files @ thyon.com and it will upload them to a folder on the CMS. Then the client can login to contao and move the files in place in the file manager.
    Thyon, this does exactly that... I think I've solved the mac Mail issue, but cannot test
    See first post of http://www.contao-community.org/view...p=12669#p12669 for zip and instructions.
    If you do use, please let me know re sending from Mac/iphone/ipad (I'll put it in the repository if all ok)

  12. #12
    Experienced user
    Join Date
    06-11-09.
    Location
    Cape Town, South Africa
    Posts
    1,387

    Default Re: need help with zad_sendnews

    ramjet, of course I am testing yours now, but your's deletes all unprocessed e-mails and I want a mailbox to be used by multiple extensions.

    Upload & News => both read from blog@ company.com.... using a password in the subject, if I send a News item, then your uploader will remove that as I cannot guarantee that the news updater will grab it first. Pickle.

  13. #13
    Experienced user
    Join Date
    06-20-09.
    Posts
    1,311

    Default Re: need help with zad_sendnews

    This line appears twice in PollE_UpMailbox.php (the second time to delete rejected emails, and the first time to delete accepted emails after processing.
    Code:
    $status = imap_setflag_full ($mbox, $msgno, "\\Deleted");
    Comment one/both out.

    EDIT: sorry trinko, I seem to have hijacked this thread -

  14. #14
    New user
    Join Date
    08-21-11.
    Posts
    19

    Default Re: need help with zad_sendnews

    See new version of Send News extension: http://www.contao-community.org/view...hp?f=21&t=4117

    @ramjet: no problem

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •