このプラグインは WordPress の最新3回のメジャーリリースに対してテストされていません。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress で使用した場合は互換性の問題が発生する可能性があります。

Swift Mailer

説明

Loads the Swift Mailer library into WordPress and nothing more. See http://swiftmailer.org for more information.

This plugin was created to provide a reliable way to update the core Swift Mailer library across multiple WordPress installs. The plugin loads only the core library so any mail functions will have to be written.

Feedback welcomed! For feature requests or questions, create a thread on the support tab (https://wordpress.org/support/plugin/swift-mailer) or email hello [at] turnonsocial [dot] com

スクリーンショット

  • Sample code for application

インストール

Upload and activate. You can then use the Swift Mailer library within your code – swift_required.php is automatically included.

Sample connect and send code (full documentation available at: http://swiftmailer.org/docs/sending.html )
// Create the Transport
$transport = Swift_SmtpTransport::newInstance(‘smtp.example.org’, 25)
->setUsername(‘your username’)
->setPassword(‘your password’)
;

// Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);

// Create a message
$message = Swift_Message::newInstance('Wonderful Subject')
  ->setFrom(array('john@doe.com' => 'John Doe'))
  ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
  ->setBody('Here is the message itself')
  ;

// Send the message
$result = $mailer->send($message);

FAQ

Installation Instructions

Upload and activate. You can then use the Swift Mailer library within your code – swift_required.php is automatically included.

Sample connect and send code (full documentation available at: http://swiftmailer.org/docs/sending.html )
// Create the Transport
$transport = Swift_SmtpTransport::newInstance(‘smtp.example.org’, 25)
->setUsername(‘your username’)
->setPassword(‘your password’)
;

// Create the Mailer using your created Transport
$mailer = Swift_Mailer::newInstance($transport);

// Create a message
$message = Swift_Message::newInstance('Wonderful Subject')
  ->setFrom(array('john@doe.com' => 'John Doe'))
  ->setTo(array('receiver@domain.org', 'other@domain.org' => 'A name'))
  ->setBody('Here is the message itself')
  ;

// Send the message
$result = $mailer->send($message);
How do I use this plugin?

Upon activation, the Swift Mailer library is available to you throughout your codebase. Simply create a transport, create a message and send.

Do you have sample code for sending an email?

See the fantastic Swift Mailer documentation http://swiftmailer.org/docs/sending.html

Where do the library files come from?

All lib files are pulled directly from the official Swift Mailer github repo at https://github.com/swiftmailer/swiftmailer

I have a feature request or suggestion

Great! Please create a message in the Support forum https://wordpress.org/support/plugin/swift-mailer

貢献者と開発者

Swift Mailer はオープンソースソフトウェアです。以下の人々がこのプラグインに貢献しています。

貢献者

“Swift Mailer” をあなたの言語に翻訳しましょう。

開発に興味がありますか ?

コードを閲覧するか、SVN リポジトリをチェックするか、開発ログRSS で購読してみてください。

変更履歴

5.4.3

  • Updated to Swift Mailer library v5.4.3
  • Confirmed compatibility with WordPress v4.5.3

5.4.1

  • Updated to Swift Mailer library v5.4.1

5.4.0

  • Updated to PSR-1 compliant code
  • Updated to Swift Mailer library v5.4.0

4.3.0

  • Swift Mailer library v4.3.0