attachment using sendmail
am 25.01.2005 12:01:14 von Luca Ferrari
Hi,
I use the sendmail command to send automatic e-mail in my control programs,
but I'd like to know if there's a non interactive way to send an attachment,
like a small text file. I didn't find a way in the man, so anyone has already
done it?
Thanks,
Luca
--
Luca Ferrari,
fluca1978@infinito.it
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: attachment using sendmail
am 25.01.2005 16:30:06 von Scott Taylor
Luca Ferrari said:
> Hi,
> I use the sendmail command to send automatic e-mail in my control
> programs, but I'd like to know if there's a non interactive way to send an
> attachment, like a small text file. I didn't find a way in the man, so
> anyone has already done it?
Hi Luca,
There are many ways to attach files to email, MIME is probably your best bet.
A simple command line way would be to use the less supported uuencode, man
files for that. Some mail clients may not support it though, I know there
is a plugin for Squirrel Mail though, and Eudora and Pine support it.
For MIME style attachments, I use a perl script with MIME::Lite. Works
very well and very easy to code. You can find it at
http://search.cpan.org (when it is working).
Good luck.
--
Scott
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Re: attachment using sendmail
am 25.01.2005 16:36:29 von mgc
Luca Ferrari escribi=F3:
>Hi,
>I use the sendmail command to send automatic e-mail in my control prog=
rams,=20
>but I'd like to know if there's a non interactive way to send an attac=
hment,=20
>like a small text file. I didn't find a way in the man, so anyone has =
already=20
>done it?
>
>Thanks,
>Luca
> =20
>
here there is a perl script:
http://groups.google.es/groups?q=3Dhow+to+sendmail+attachmen t&hl=3Des&l=
r=3D&selm=3D5bq8ro%24a1l%40Holly.aa.net&rnum=3D6
In these two newsgroups they give you other ideas:
http://groups.google.es/groups?hl=3Des&lr=3D&threadm=3D38828 0B2.A19184C=
%40netscape.net&rnum=3D5&prev=3D/groups%3Fq%3Dhow%2Bto%2Bsen dmail%2Batt=
achment%26hl%3Des%26lr%3D%26selm%3D388280B2.A19184C%2540nets cape.net%26=
rnum%3D5
http://groups.google.es/groups?hl=3Des&lr=3D&threadm=3D8pkcb 4%24ani%241=
%40nnrp1.deja.com&rnum=3D2&prev=3D/groups%3Fq%3Dhow%2Bto%2Bs endmail%2Ba=
ttachment%26hl%3Des%26lr%3D%26selm%3D8pkcb4%2524ani%25241%25 40nnrp1.dej=
a.com%26rnum%3D2
HTH
Regards,
Miguel
-
To unsubscribe from this list: send the line "unsubscribe linux-admin" =
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html