Skip to content

Commit d7ba181

Browse files
committed
Fixed email fail to send error
1 parent 76c0b8a commit d7ba181

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Email.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -112,10 +112,10 @@ function setAccount(int $email_account): self
112112
$this->_email_account = $ac;
113113
$this->_mail_server = $svr;
114114

115-
$this->_connection_type = get_post_meta($this->_mail_server->ID, 'conn_type', null)[0] ?? null;
115+
$this->_connection_type = get_post_meta($this->_mail_server->ID, 'connection_type', null)[0] ?? null;
116116
$this->_connection_type = array_key_exists($this->_connection_type, DataList::get('email_connection')) ? $this->_connection_type : null;
117117

118-
$this->_host = get_post_meta($this->_mail_server->ID, 'hostname', null)[0] ?? null;
118+
$this->_host = get_post_meta($this->_mail_server->ID, 'host', null)[0] ?? null;
119119

120120
$this->_port = get_post_meta($this->_mail_server->ID, 'port', null)[0] ?? null;
121121
$this->_port = ctype_digit((string) $this->_port) ? (int) $this->_port : null;

0 commit comments

Comments
 (0)