Operating System - HP-UX
1832984 Members
3061 Online
110048 Solutions
New Discussion

how to put from@mail.com address into -elm

 
SOLVED
Go to solution
Vlad_11
Frequent Advisor

how to put from@mail.com address into -elm

Hi,
I'm using the following inside the shell:
elm -s "$SUBJECT" -a $MAILTO < body
(where body includes :
[include file.gz image/zip base64] )

But I need to put predefined $MAILFROM address into this email that should be visible for reciepient, so far could't found any leads.
Is it possible ?
Thanks to all

V
beer or not beer
4 REPLIES 4
Steven E. Protter
Exalted Contributor
Solution

Re: how to put from@mail.com address into -elm

I have a program that scripts sendmail. I'm attaching it.

mailx is easier to do that with.

It can be done with elm, but I'm lazy.

See attachment.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Sundar_7
Honored Contributor

Re: how to put from@mail.com address into -elm

Sendmail has a -t option which allows the "trusted users" (root is by default trusted) to define the MAIL FROM: in the command line.

# sendmail -v -t from@email.com to@email.com
Learn What to do ,How to do and more importantly When to do ?
Sundar_7
Honored Contributor

Re: how to put from@mail.com address into -elm


Oops ! sorry ignore my previous message.

The option is -f and not -t !

# sendmail -v -ffrom@email.com to@email.com
Learn What to do ,How to do and more importantly When to do ?
GK_5
Regular Advisor

Re: how to put from@mail.com address into -elm

I know sendmail has -f option where you can put from email id. man sendmail for more details.
IT is great!