Jump to content

flod

Members
  • Posts

    28
  • Joined

  • Last visited

Posts posted by flod

  1. I'm working on a newsletter solution with WireMailSMTP and this Newsletter Tutorial.
    I only changed the lines 73 to 83 in newsletter.php, but there's a strange issue with the $subscribers array:

        $testMode = isset($_POST['test_email']) ? true : false;
        if ($testMode) {
            $subscribers = wire('input')->post('test_email');
            if (strpos($subscribers, ',') !== false) {
                $subscribers = explode(',', $subscribers);
            }
        } else {
            $subscribers = $pages->find('template=subscriber');
            $subscribers = $subscribers->explode('email');
        }
    	if (is_array($subscribers)) {
            $subscribers = array_map('trim', $subscribers);
        }
    	$mail = wireMail();
        $mail->sendSingle(true)->to('test@domain.de')->bcc($subscribers);
        $mail->from('xxx@domain.de');
        $mail->subject($newsletter->title);
        $mail->bodyHTML($html);
    
    	$numSent = $mail->send();
        echo json_encode(count($subscribers));
        $this->halt();
    The email is sent to test@domain.de but not to bcc $subscribers.
    Errorlog: PHP Notice: Unknown: Invalid mailbox list: <> (errflg=3) in Unknown on line 0
    

    I'm grateful for any advice.

    Greetings
    Florian

  2. I recognized the following problem:

    If I set Admin Restrict Branch to restrict access to page XXX users with permission are not able to upload images. The upload process starts with no image in the end. If it is not set to page XXX everything works fine.

    Settings:

     Zwischenablage-1.jpg

    Thanks for your support!

  3. Ryan wrote this on github:

    I'm aware of this, but unfortunately don't have the bandwidth to re-build this module at present. The new API is a completely different animal from the old, so there's no quick fix here. I hope to get to this eventually, but it could be a couple months before I can get into it due to other scheduled obligations. As a result, I am looking for anyone that might have more bandwidth than me in the short term that might be interested in taking over this module. Though if we can't find anybody, then I will still plan to update it as soon as there's time to do so.

    https://github.com/ryancramerdesign/MarkupLoadGCal/issues/5

    • Like 1
  4. <?php

    if(time() > $page->getUnformatted('publish_until')) {

        $pages->trash($page);

        throw new PageNotFoundException();

    }

    This works perfect for me with my news template. But how is it possible to do this by using the homepage template and any child page of the website, for example:

    homepage

    -news

    --publish until yesterday (move to trash by accessing the homepage)

    Thanks for your help!

×
×
  • Create New...