Pular para o conteúdo

Send e-mail using mail and postfix [RESOLVIDO]

Responder tópico
  • Denunciar
  • Indicar

1. Send e-mail using mail and postfix [RESOLVIDO]

Enviado em 10/06/2020 - 11:20h

I'm using mail and postfix to send and receive messages. When I use the command below the email is not sent.
My linux is ubuntu 18:
mail -s "Test" -A /opt/bin/anexo.txt xxxxxx@hotmail.com < /opt/bin/arquivo.txt
I can send only with an attachment or just with the body of the message, but not both at the same time. Please, can someone help me?

Responder tópico

2. Re: Send e-mail using mail and postfix [RESOLVIDO]

Melhor resposta

Enviado em 10/06/2020 - 12:02h


Try using mutt and be happy forever and ever...


mutt -e "set envelope_from=yes" -e "set content_type=text/html" -e "set from='Your e-mail <myemail@bla.com>'" -s "My Subject" -a myattachment.zip -- mydestination@bla.com < /my/path/mybodymessage.html

--
http://br.linkedin.com/in/renatocarneirop
http://www.facebook.com/renatocarneirop

"Não acredite no que eu digo, pois é a minha experiência e não a sua. Experimente, indague e busque." - Osho Rajneesh

Responder tópico

Responder tópico

Entre na sua conta para responder.

Fazer login para responder