mirror of
https://github.com/itflow-org/itflow
synced 2026-03-01 03:14:52 +00:00
Remove redundant (default) arguments
This commit is contained in:
@@ -63,7 +63,7 @@ if ($emails) {
|
|||||||
foreach($emails as $email) {
|
foreach($emails as $email) {
|
||||||
|
|
||||||
// Get message details
|
// Get message details
|
||||||
$metadata = imap_fetch_overview($imap, $email,0); // Date, Subject, Size
|
$metadata = imap_fetch_overview($imap, $email); // Date, Subject, Size
|
||||||
$header = imap_headerinfo($imap, $email); // To get the From as an email, not a contact name
|
$header = imap_headerinfo($imap, $email); // To get the From as an email, not a contact name
|
||||||
$message = imap_fetchbody($imap, $email, 1); // Body
|
$message = imap_fetchbody($imap, $email, 1); // Body
|
||||||
|
|
||||||
@@ -201,4 +201,4 @@ if ($emails) {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -525,7 +525,6 @@ function sendSingleEmail($config_smtp_host, $config_smtp_username, $config_smtp_
|
|||||||
$mail->addAddress("$to_email", "$to_name"); // Add a recipient
|
$mail->addAddress("$to_email", "$to_name"); // Add a recipient
|
||||||
|
|
||||||
// Content
|
// Content
|
||||||
$mail->isHTML(true); // Set email format to HTML
|
|
||||||
$mail->Subject = "$subject"; // Subject
|
$mail->Subject = "$subject"; // Subject
|
||||||
$mail->Body = "$body"; // Content
|
$mail->Body = "$body"; // Content
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user