CoreCommunity ExtensionsIncubatorDistributionsTYPO3 4.5 ProjectsTYPO3 4.6 ProjectsTYPO3 4.7 ProjectsTYPO3 6.0 ProjectsTYPO3 6.1 ProjectsTYPO3 6.2 Projects (+)

Feature #13711

Use SwiftMailer API

Added by Francois Suter about 2 years ago. Updated 11 months ago.

Status:Closed Start date:2011-03-09
Priority:Must have Due date:
Assignee:Francois Suter % Done:

100%

Category:Reporting
Target version:2.0.0
Votes: 0

Description

The next version of external_import should rely on the new SwiftMailer API to send the report mails.


Related issues

duplicates External Import - Bug #37955: class.t3lib_htmlmail.php removed in 4.7 after deprecation Closed 2012-06-12

Associated revisions

Revision 62853
Added by Francois Suter 12 months ago

Used SwiftMailer for reporting mail, resolves #13711

Revision 62853
Added by Francois Suter 12 months ago

Used SwiftMailer for reporting mail, resolves #13711

History

Updated by Dominique Feyer about 1 year ago

Here a simple patch for Swiftmailer support:

    /**
     * This method sends a reporting mail to the configured e-mail address
     *
     * @param    string    $subject: subject of the mail
     * @param    string    $body: text body of the mail
     * @return    void
     */
    public function sendMail($subject, $body) {
        /** @var $mail t3lib_mail_Message */
        $mail = t3lib_div::makeInstance('t3lib_mail_Message');
        $mail->setFrom(array($GLOBALS['BE_USER']->user['email'] => $GLOBALS['BE_USER']->user['realName']));
        $mail->setTo($this->extConf['reportEmail']);
        $mail->setReplyTo(array($GLOBALS['BE_USER']->user['email'] => $GLOBALS['BE_USER']->user['realName']));
        $mail->setSubject($subject);
        $mail->setBody($body);

        $result = $mail->send();

        if (!$result) {
            $GLOBALS['BE_USER']->writelog(
                4,
                0,
                1,
                $this->extKey,
                'Reporting mail could not be sent',
                array()
            );
        }
    }

Updated by Francois Suter 12 months ago

  • Status changed from New to Accepted
  • Assignee set to Francois Suter

Updated by Francois Suter 12 months ago

  • Status changed from Accepted to Resolved
  • % Done changed from 0 to 100

Applied in changeset r62853.

Updated by Francois Suter 11 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF