PluginProbe ʕ •ᴥ•ʔ
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin / 4.9.0
WP Mail SMTP by WPForms – The Most Popular SMTP and Email Log Plugin v4.9.0
4.9.0 0.9.6 1.0.0 1.0.1 1.0.2 1.1.0 1.2.0 1.2.1 1.2.2 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.4.1 1.4.2 1.5.0 1.5.1 1.5.2 1.6.0 1.6.2 1.7.0 1.7.1 1.8.0 1.8.1 1.9.0 2.0.0 2.0.1 2.1.1 2.2.1 2.3.1 2.4.0 2.5.0 2.5.1 2.6.0 2.7.0 2.8.0 2.9.0 3.0.1 3.0.2 3.0.3 3.1.0 3.10.0 3.11.0 3.11.1 3.2.0 3.2.1 3.3.0 3.4.0 3.5.0 3.5.1 3.5.2 3.6.1 3.7.0 3.8.0 3.8.2 3.9.0 4.0.1 4.1.0 4.1.1 4.2.0 4.3.0 4.4.0 4.5.0 4.6.0 4.7.0 4.7.1 4.8.0 trunk 0.10.0 0.10.1 0.11.1 0.11.2 0.3.1 0.3.2 0.4 0.4.1 0.4.2 0.5.0 0.5.1 0.5.2 0.6 0.7 0.8 0.8.2 0.8.3 0.8.4 0.8.5 0.8.6 0.8.7 0.9.0 0.9.1 0.9.2 0.9.3 0.9.4 0.9.5
wp-mail-smtp / src / AbstractConnection.php
wp-mail-smtp / src Last commit date
Abilities 6 days ago Admin 6 days ago Compatibility 6 days ago Helpers 6 days ago Integrations 6 days ago Providers 6 days ago Queue 6 days ago Reports 6 days ago Tasks 6 days ago TestEmail 6 days ago UsageTracking 6 days ago WPCLI 6 days ago AbstractConnection.php 6 days ago Conflicts.php 6 days ago Connect.php 6 days ago Connection.php 6 days ago ConnectionInterface.php 6 days ago ConnectionsManager.php 6 days ago Core.php 6 days ago DBRepair.php 6 days ago Debug.php 6 days ago EmailSendingDebug.php 6 days ago Geo.php 6 days ago MailCatcher.php 6 days ago MailCatcherInterface.php 6 days ago MailCatcherTrait.php 6 days ago MailCatcherV6.php 6 days ago Migration.php 6 days ago MigrationAbstract.php 6 days ago Migrations.php 6 days ago OptimizedEmailSending.php 6 days ago Options.php 6 days ago Processor.php 6 days ago SiteHealth.php 6 days ago Upgrade.php 6 days ago Uploads.php 6 days ago WP.php 6 days ago WPMailArgs.php 6 days ago WPMailInitiator.php 6 days ago
AbstractConnection.php
68 lines
1 <?php
2
3 namespace WPMailSMTP;
4
5 use WPMailSMTP\Providers\MailerAbstract;
6
7 /**
8 * Abstract class AbstractConnection.
9 *
10 * @since 3.7.0
11 */
12 abstract class AbstractConnection implements ConnectionInterface {
13
14 /**
15 * Get the connection title.
16 *
17 * @since 3.7.0
18 *
19 * @return string
20 */
21 public function get_title() {
22
23 return sprintf(
24 '%s (%s)',
25 $this->get_name(),
26 wp_mail_smtp()->get_providers()->get_options( $this->get_mailer_slug(), $this )->get_title()
27 );
28 }
29
30 /**
31 * Get connection mailer slug.
32 *
33 * @since 3.7.0
34 *
35 * @return string
36 */
37 public function get_mailer_slug() {
38
39 return $this->get_options()->get( 'mail', 'mailer' );
40 }
41
42 /**
43 * Get connection mailer object.
44 *
45 * @since 3.7.0
46 *
47 * @return MailerAbstract
48 */
49 public function get_mailer() {
50
51 $phpmailer = wp_mail_smtp()->get_processor()->get_phpmailer();
52
53 return wp_mail_smtp()->get_providers()->get_mailer( $this->get_mailer_slug(), $phpmailer, $this );
54 }
55
56 /**
57 * Whether the connection is primary or not.
58 *
59 * @since 3.7.0
60 *
61 * @return bool
62 */
63 public function is_primary() {
64
65 return false;
66 }
67 }
68