[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Help com email em script???



plebeo wrote:
Pessoal, eu to fazendo um script aqui pra me enviar alguns aqruivos por anexo pro meu e-mail, mas nao ta dando certo. eu nao tenho servidor de e-mail configurado e nem pretendo ter, só quero usar o bom e velho comando mail mas ele nao enviar email dejeito nenhum, eu to fazendo assim:

mail -a arquivo -s "teste" -S smtp=gmail.com:465 <http://gmail.com:465> smtp-auth=meuemail@gmail.com <mailto:meuemail@gmail.com> smtp-auth-user=meuemail@gmail.com <mailto:meuemail@gmail.com> smtp-auth-password=minha senha emaildedestino@gmil.com <mailto:emaildedestino@gmil.com>

ele fica nisso e nao sai nunca??? oque pode ser? como posso fazer pra enviar esse email por linha de comando?

Agradeco já
Muito grato, abs a todos.

Tente com o sendemail.


bruno@neutron:~$ apt-cache show sendemail
Package: sendemail
Priority: optional
Section: mail
Installed-Size: 164
Maintainer: Alejandro Garrido Mota <garridomota@gmail.com>
Architecture: all
Version: 1.55-1
Depends: perl
Filename: pool/main/s/sendemail/sendemail_1.55-1_all.deb
Size: 32894
MD5sum: 7af30db236b8ae6ef194e9f1ecf7dc36
SHA1: 9e4f976f2d892c1ee64faff6bcaeefc249030aa8
SHA256: c309efc1973873f088024366d26846bbe3d82045c86038ad46647af7ac4343e7
Description: email-from-console sending tool
SendEmail is a lightweight, completly command line based, SMTP email
agent.
.
It was designed to be used in bash scripts, Perl programs, and web
sites, but it is also quite useful in many other contexts.
.
SendEmail is written in Perl and is unique in that it
requires no special modules. It has a straight forward interface,
making it very easy to use.
Tag: implemented-in::perl, interface::commandline, interface::shell, mail::smtp, mail::user-agent, network::client, protocol::smtp, protocol::ssl, role::program, use::transmission, works-with::mail



Reply to: