Re: [Exim] send mails from a script

Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Jeffrey Goldberg
Fecha:  
A: Vankeerberghen, Pieter
Cc: Exim Users Mailing List (E-mail)
Asunto: Re: [Exim] send mails from a script
[mailed and posted]

On Fri, 27 Jul 2001, Vankeerberghen, Pieter wrote:

> Can someone point me to some documentation how to send mails from a
> script ?


From some from of shell script you just call

/path/to/exim -t -oi

and provide the message as standard input.

Assuming that you have made /usr/sbin/sendmail a link to the exim binary,
you can call this with sendmail.

Note also, that if you are using perl, there are packages for sending mail
which will call sendmail (which you should have linked to the exim binary)
with appropriate options.

PS: Please post to mailing lists with plain text only and no HTML
alternatives. Thanks.

-j


--
Jeffrey Goldberg
I have recently moved, see http://www.goldmark.org/jeff/contact.html
Relativism is the triumph of authority over truth, convention over justice