summaryrefslogtreecommitdiff
path: root/Postman/Postman-Mail/PostmanTransportRegistry.php
diff options
context:
space:
mode:
authoryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-05-15 12:14:32 +0000
committeryehudah <yehudah@b8457f37-d9ea-0310-8a92-e5e31aec5664>2019-05-15 12:14:32 +0000
commit38153c0f3e739f3d89a1a7734fd7d199bf457fab (patch)
tree28e19f4e091d5182a2c63bc98377e5381b0043ac /Postman/Postman-Mail/PostmanTransportRegistry.php
parent942aa536210fe204a2d097eb8878c1d690e0547b (diff)
downloadPost-SMTP-38153c0f3e739f3d89a1a7734fd7d199bf457fab.zip
= 2.0 - 2019-05-15
* New: Mailer Type - Added an option to send without overwrite the 'wp_mail' function, better compability to WordPress delivery. hopefully will be the default in the future. * Updated: Sendgrid API was upgraded and rewritten to the new version. * Fixed: Message-Id header was missing on SMTP * Fixed: Email logger optimization - better query for large amount of records. * Fixed: The localization was fixed to match translate.wordpress.org translation system ( Thanks to Niels de Blaauw from Level-Level ). * Fixed: Code and optimization ( Thanks to Niels de Blaauw from Level-Level ).
Diffstat (limited to 'Postman/Postman-Mail/PostmanTransportRegistry.php')
-rw-r--r--Postman/Postman-Mail/PostmanTransportRegistry.php22
1 files changed, 11 insertions, 11 deletions
diff --git a/Postman/Postman-Mail/PostmanTransportRegistry.php b/Postman/Postman-Mail/PostmanTransportRegistry.php
index e86f1f4..5af2493 100644
--- a/Postman/Postman-Mail/PostmanTransportRegistry.php
+++ b/Postman/Postman-Mail/PostmanTransportRegistry.php
@@ -39,7 +39,7 @@ class PostmanTransportRegistry {
* B) when querying what a theoretical scenario involving this transport is like
* (ie.for ajax in config screen)
*
- * @param unknown $slug
+ * @param mixed $slug
*/
public function getTransport( $slug ) {
$transports = $this->getTransports();
@@ -61,7 +61,7 @@ class PostmanTransportRegistry {
/**
* Determine if a specific transport is registered in the directory.
*
- * @param unknown $slug
+ * @param mixed $slug
*/
public function isRegistered( $slug ) {
$transports = $this->getTransports();
@@ -71,7 +71,7 @@ class PostmanTransportRegistry {
/**
* Retrieve the transport Postman is currently configured with.
*
- * @return PostmanDummyTransport|PostmanModuleTransport
+ * @return PostmanModuleTransport
* @deprecated
*/
public function getCurrentTransport() {
@@ -105,7 +105,7 @@ class PostmanTransportRegistry {
/**
* Retrieve the transport Postman is currently configured with.
*
- * @return PostmanDummyTransport|PostmanModuleTransport
+ * @return PostmanModuleTransport
*/
public function getSelectedTransport() {
$selectedTransport = PostmanOptions::getInstance()->getTransportType();
@@ -143,8 +143,8 @@ class PostmanTransportRegistry {
/**
* Polls all the installed transports to get a complete list of sockets to probe for connectivity
*
- * @param unknown $hostname
- * @param unknown $isGmail
+ * @param mixed $hostname
+ * @param mixed $isGmail
* @return multitype:
*/
public function getSocketsForSetupWizardToProbe( $hostname = 'localhost', $smtpServerGuess = null ) {
@@ -178,7 +178,7 @@ class PostmanTransportRegistry {
*
* response should include ['success'], ['message'], ['priority']
*
- * @param unknown $hostData
+ * @param mixed $hostData
*/
public function getRecommendation( PostmanWizardSocket $hostData, $userAuthOverride, $originalSmtpServer ) {
$scrubbedUserAuthOverride = $this->scrubUserOverride( $hostData, $userAuthOverride );
@@ -193,7 +193,7 @@ class PostmanTransportRegistry {
/**
*
* @param PostmanWizardSocket $hostData
- * @param unknown $userAuthOverride
+ * @param mixed $userAuthOverride
* @return NULL
*/
private function scrubUserOverride( PostmanWizardSocket $hostData, $userAuthOverride ) {
@@ -231,18 +231,18 @@ class PostmanTransportRegistry {
if ( PostmanOptions::getInstance()->getRunMode() != PostmanOptions::RUN_MODE_PRODUCTION ) {
return array(
'error' => true,
- 'message' => __( 'Postman is in <em>non-Production</em> mode and is dumping all emails.', Postman::TEXT_DOMAIN ),
+ 'message' => __( 'Postman is in <em>non-Production</em> mode and is dumping all emails.', 'post-smtp' ),
);
} else {
return array(
'error' => false,
- 'message' => __( 'Postman is configured.', Postman::TEXT_DOMAIN ),
+ 'message' => __( 'Postman is configured.', 'post-smtp' ),
);
}
} else {
return array(
'error' => true,
- 'message' => __( 'Postman is <em>not</em> configured and is mimicking out-of-the-box WordPress email delivery.', Postman::TEXT_DOMAIN ),
+ 'message' => __( 'Postman is <em>not</em> configured and is mimicking out-of-the-box WordPress email delivery.', 'post-smtp' ),
);
}
}