Transfering netmail via EMSI
This commit is contained in:
@@ -26,17 +26,18 @@ final class Ping extends Process
|
||||
if (strtolower($msg->user_to) !== 'ping')
|
||||
return FALSE;
|
||||
|
||||
$reply = sprintf("Your ping was received here on %s and it took %s to get here.\n",
|
||||
$reply = sprintf("Your ping was received here on %s and it took %s to get here.\r",
|
||||
Carbon::now()->toDateTimeString(),
|
||||
$msg->date->diffForHumans(['parts'=>3,'syntax'=>CarbonInterface::DIFF_ABSOLUTE])
|
||||
);
|
||||
|
||||
$reply .= "\n";
|
||||
$reply .= "Your message travelled along this path to get here:\n";
|
||||
$reply .= "\r";
|
||||
$reply .= "\r";
|
||||
$reply .= "Your message travelled along this path on the way here:\r";
|
||||
foreach ($msg->via as $path)
|
||||
$reply .= sprintf(" * %s\n",$path);
|
||||
$reply .= sprintf(" * %s\r",$path);
|
||||
|
||||
$o = new Netmail();
|
||||
$o = new Netmail;
|
||||
$o->to = $msg->user_from;
|
||||
$o->from = Setup::PRODUCT_NAME;
|
||||
$o->subject = 'Ping Reply';
|
||||
|
Reference in New Issue
Block a user