Plugin Directory

Changeset 1835806


Ignore:
Timestamp:
03/07/2018 11:01:07 PM (8 years ago)
Author:
poisl
Message:

modified version to 1.0.2
fix in the mail notification, wordpress admin mail is now used as sender.

Location:
event-scheduler/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • event-scheduler/trunk/README.txt

    r1823746 r1835806  
    55Requires at least: 4
    66Tested up to: 4.9.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    4141== Changelog ==
    4242
     43= 1.0.2 =
     44* Fix in the mail notification, wordpress admin mail is now used as sender.
     45
    4346= 1.0.1 =
    4447* Small fix for accepting and declining events
  • event-scheduler/trunk/README_DE.txt

    r1823746 r1835806  
    55Requires at least: 4
    66Tested up to: 4.9.4
    7 Stable tag: 1.0.1
     7Stable tag: 1.0.2
    88Requires PHP: 5.6
    99License: GPLv2 or later
     
    3939== Changelog ==
    4040
     41= 1.0.2 =
     42* Fix in der Benachrichtigungsmail, zudem wird nun die Admin-Mail als Absender verwendet.
     43
    4144= 1.0.1 =
    4245* Kleiner Fix beim Zu- und Absagen von Events
  • event-scheduler/trunk/event-scheduler.php

    r1823967 r1835806  
    1717 * Plugin URI:        https://github.com/poisl/event-scheduler
    1818 * Description:       Event scheduler can be used for planning of recurring events.
    19  * Version:           1.0.1
     19 * Version:           1.0.2
    2020 * Author:            Thomas Poisl
    2121 * Author URI:        https://profiles.wordpress.org/poisl
  • event-scheduler/trunk/public/class-event-scheduler-public.php

    r1823639 r1835806  
    372372
    373373            $notify_users = $div->findUndecidedParticipants( $events[0]->uid );
     374
     375            $admin_email = get_option('admin_email');
     376            $admin_info = get_user_by('email', $admin_email);
    374377
    375378            foreach ( $notify_users as $row ) {
     
    395398                    ),
    396399                    $options['event_notification_body']
    397                 ) );
    398 
    399                 $headers = array( 'Content-Type: text/html; charset=UTF-8' );
     400                ), ENT_QUOTES);
     401
     402                $headers = "Content-Type: text/html; charset=UTF-8" . "\r\n";
     403                $headers .= "From: \"" . $admin_info->first_name . " " . $admin_info->last_name . "\" <" . $admin_email . ">" . "\r\n";
    400404
    401405                // Send mail
Note: See TracChangeset for help on using the changeset viewer.