if (!$address) {
$address = $user['email'];
}
- $mail = new PHPmailer();
+ $mail = new PHPMailer();
try {
$mail->XMailer = 'Friendica Mailstream Addon';
$mail->SetFrom($frommail, mailstream_sender($item));
public function getSMTPInstance()
{
if (!is_object($this->smtp)) {
+ /** @phpstan-ignore-next-line file class.smtp.php does not exist */
$this->smtp = new SMTP;
}
return $this->smtp;
$file_buffer = $this->encodeString($file_buffer, $encoding);
if ($magic_quotes) {
if (version_compare(PHP_VERSION, '5.3.0', '<')) {
- set_magic_quotes_runtime($magic_quotes);
+ //set_magic_quotes_runtime($magic_quotes);
} else {
ini_set('magic_quotes_runtime', $magic_quotes);
}