Skip to content

Commit bb4792c

Browse files
authored
Merge pull request #30 from stoecker/master
Don't use data from non-existing identity to work with custom_from plugin
2 parents 7f53b93 + 57a7b82 commit bb4792c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

identity_smtp.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ function smtpWillConnect($args)
238238
$smtpSettings = $this->loadSmtpSettings(array(
239239
'identity_id' => $this->from_identity
240240
));
241-
if (!$smtpSettings['smtp_standard'] && !is_null($smtpSettings['smtp_standard'])) {
241+
if (!is_null($this->from_identity) && !$smtpSettings['smtp_standard'] && !is_null($smtpSettings['smtp_standard'])) {
242242
$args['smtp_host'] = $smtpSettings['smtp_host'];
243243
$args['smtp_user'] = $smtpSettings['smtp_user'];
244244
$args['smtp_pass'] = rcmail::get_instance()->decrypt($smtpSettings['smtp_pass']);

0 commit comments

Comments
 (0)