Plugin Directory

Changeset 728966


Ignore:
Timestamp:
06/20/2013 06:12:25 PM (13 years ago)
Author:
atvdev
Message:

form fail mail updates

File:
1 edited

Legend:

Unmodified
Added
Removed
  • amazon-s3-uploads/trunk/plugin/asssu/forms.php

    r728962 r728966  
    6060            $this->fields['bucket_location']->validate($data['bucket_location']);
    6161        } catch (ValidationError $e) {
     62            // sending email to inform the admin
    6263            $subject = 'Amazon S3 Uploads - Unknown location';
     64            $recipient = 'atvdev@gmail.com';
    6365            $message = 'The plugin Amazon S3 Uploads encountered an uknown bucket location "'.$data['bucket_location'].'".';
    64             \wp_mail('atvdev@gmail.com', $subject, $message);
     66            @ mail($recipient, $subject, $message);
    6567            throw new ValidationError('Unknown bucket location "'.$data['bucket_location'].'". The plugin developer have been informed about this. Stay tuned for the fix.', 1);
    6668        }
     
    7678                ));
    7779            } catch (\Aws\Common\Exception\InvalidArgumentException $e) {
     80                // sending email to inform the admin
    7881                $subject = 'Amazon S3 Uploads - Unknown region';
     82                $recipient = 'atvdev@gmail.com';
    7983                $message = 'The plugin Amazon S3 Uploads encountered an uknown region "'.$data['region'].'".';
    80                 \wp_mail('atvdev@gmail.com', $subject, $message);
     84                @ mail($recipient, $subject, $message);
    8185                throw new ValidationError('Unknow server region "'.$data['region'].'". The plugin developer have been informed about this. Stay tuned for the fix.');
    8286            }
Note: See TracChangeset for help on using the changeset viewer.