# Wysyłanie załączników poleceniem mail

DevFeed: [Wysyłanie załączników poleceniem mail](<https://devfeed.tech/articles/wysy-anie-za-acznikow-poleceniem-mail-27493.md>)

Original publisher: [Read original article](<https://gagor.pro/2011/08/wysylanie-zalacznikow-poleceniem-mail/>)

Author: Tom

Published: 2011-08-27T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Shell](<https://devfeed.tech/topics/shell.md>), [Zip](<https://devfeed.tech/topics/zip.md>), [Command-line interface](<https://devfeed.tech/topics/cli.md>)

Tags: [bash](<https://devfeed.tech/tags/bash.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mail](<https://devfeed.tech/tags/mail.md>), [shell](<https://devfeed.tech/tags/shell.md>), [zip](<https://devfeed.tech/tags/zip.md>)

## AI overview

A Polish developer article shows how to send email attachments from a shell using the mail command and uuencode, including a load-testing example that sends many messages.

## Source excerpt

Kiedyś potrzebowałem w ramach testu obciążeniowego wysłać dużo wiadomości z załącznikami. Chciałem to zrobić na szybko z shell'a i tutaj chwilę musiałem pogooglać aby znaleźć działające polecenie. To co znalazłem wygląda tak: (echo "testowa wiadomosc"; uuencode test.zip test.zip) \ | mail -s "Test" testowy@mail.pl Wiedząc już jak wysyłać maile z załącznikami, mały mail bombing mogłem zrobić tak: for i in `seq 1 100`; do (cat tekst.txt; uuencode test.zip test.zip) \ | mail -s "Test $i" testowy@mail.pl; done