mail from script

  • Follow


Hello All.

I have test.sh script from wich I send msgs via mail command.
I want to have proof :) that msgs were sent. What I have to configure to 
have such reports?

WBR, Andrei.
0
Reply Pro395 (2) 8/13/2004 7:59:57 AM

Pro wrote on 13.08.2004 09:59:

> Hello All.
> 
> I have test.sh script from wich I send msgs via mail command.
> I want to have proof :) that msgs were sent. What I have to configure to 
> have such reports?

Best you CC yourself. If a message is successfully send it doesn't mean 
it is delivered.

-- 
Walter
0
Reply Walter 8/13/2004 8:14:41 AM


On 2004-08-13 09:14:41 +0100, Walter Schiessberg <nospam.news@arcor.de> said:

> Pro wrote on 13.08.2004 09:59:
> 
>> Hello All.
>> 
>> I have test.sh script from wich I send msgs via mail command.
>> I want to have proof :) that msgs were sent. What I have to configure 
>> to have such reports?
> 
> Best you CC yourself. If a message is successfully send it doesn't mean 
> it is delivered.

True, though even that only proves successful delivery to the OP.

-- 
Tony

0
Reply Tony 8/13/2004 11:12:15 AM

Tony Walton wrote on 13.08.2004 13:12:

> On 2004-08-13 09:14:41 +0100, Walter Schiessberg <nospam.news@arcor.de> 
> said:
[...]
>> Best you CC yourself. If a message is successfully send it doesn't 
>> mean it is delivered.
> 
> 
> True, though even that only proves successful delivery to the OP.

Yes, you're right. But I thought this is the nearest you can get to 
proof ;) If there is any access to the remote site you could trigger an 
answer.

-- 
Walter
0
Reply Walter 8/13/2004 11:39:41 AM

Walter Schiessberg wrote:
> Pro wrote on 13.08.2004 09:59:
> 
>> Hello All.
>>
>> I have test.sh script from wich I send msgs via mail command.
>> I want to have proof :) that msgs were sent. What I have to configure 
>> to have such reports?
> Best you CC yourself. If a message is successfully send it doesn't mean 
> it is delivered.
How could I _cc_ via mail utility?

WBR, Andrei.
0
Reply Pro 8/13/2004 3:00:42 PM

Pro wrote on 13.08.2004 17:00:

> Walter Schiessberg wrote:
[...]
>> Best you CC yourself. If a message is successfully send it doesn't 
>> mean it is delivered.
> 
> How could I _cc_ via mail utility?
> 

You could just give it two recipients like

mail -s Notification "<recipient1>,<recipient2>" << EOF
Your Text
EOF

-- 
Cheers

Walter
0
Reply Walter 8/13/2004 3:11:20 PM

On 2004-08-13 12:39:41 +0100, Walter Schiessberg <nospam.news@arcor.de> said:

> Tony Walton wrote on 13.08.2004 13:12:
>> True, though even that only proves successful delivery to the OP.
> 
> Yes, you're right. But I thought this is the nearest you can get to 
> proof ;) If there is any access to the remote site you could trigger an 
> answer.

Just thinking aloud here really, but might there be a way to bolt a 
"Return-receipt" header on the mail? Even then someone truly not 
wanting to listen could fake a receipt and chuck the email into the 
bit-bucket unread if they really wanted to.

Ultimately I suppose there's no way of "proving" this short of actually 
going and watching the recipient (I'm assuming a human and not a 
script) read the email. At the minimum the recipient could fire up 
their mail client and delete the thing unread, of course.

The original question was whether the mail was *sent*, which is 
probably a bit easier. It might help if Andrei could outline what 
problem he's trying to solve...

-- 
Tony

0
Reply Tony 8/13/2004 3:42:10 PM

In article <2004081316421016807%tonywalton@beeteeconnectcom>, Tony Walton wrote:

>Just thinking aloud here really, but might there be a way to bolt a 
>"Return-receipt" header on the mail? Even then someone truly not 

Some (better) mail s/w has been ignoring these for years.

-- 
Elvis Notargiacomo  master AT barefaced DOT cheek
http://www.notatla.org.uk/goen/
   If its message contained filing-cabinets in annex, for
   security reasons same sao automatically extinguished.
0
Reply elvis 8/13/2004 6:12:05 PM

In article <2o43crF6pqrjU1@uni-berlin.de>,
	Pro <Pro@example.net> writes:
> Walter Schiessberg wrote:
>> Pro wrote on 13.08.2004 09:59:
>> 
>>> Hello All.
>>>
>>> I have test.sh script from wich I send msgs via mail command.
>>> I want to have proof :) that msgs were sent. What I have to configure 
>>> to have such reports?
>> Best you CC yourself. If a message is successfully send it doesn't mean 
>> it is delivered.
> How could I _cc_ via mail utility?

Use mailx instead.

mailx -c ccaddr -s "my subject" toaddr

-- 
mailto:rlhamil@smart.net  http://www.smart.net/~rlhamil

Lasik/PRK theme music:
    "In the Hall of the Mountain King", from "Peer Gynt"
0
Reply Richard 8/13/2004 9:34:48 PM

Tony Walton <tonywalton@beeteeconnect.com> wrote:
> On 2004-08-13 12:39:41 +0100, Walter Schiessberg <nospam.news@arcor.de> said:
> 
>> Tony Walton wrote on 13.08.2004 13:12:
>>> True, though even that only proves successful delivery to the OP.
>> 
>> Yes, you're right. But I thought this is the nearest you can get to 
>> proof ;) If there is any access to the remote site you could trigger an 
>> answer.
> 
> Just thinking aloud here really, but might there be a way to bolt a 
> "Return-receipt" header on the mail? Even then someone truly not 
> wanting to listen could fake a receipt and chuck the email into the 
> bit-bucket unread if they really wanted to.

Furthermore, I always make sure that my mail client is configured to NOT
send return-receipts, even when I read the message. They're annoying garbage,
and not much else.

Colin
0
Reply Colin 8/17/2004 1:55:14 AM

9 Replies
120 Views

(page loaded in 0.13 seconds)

Similiar Articles:













7/12/2012 6:54:55 AM


Reply: