Operating System - HP-UX
1834449 Members
2117 Online
110067 Solutions
New Discussion

using sendmail -v to send a txt file

 
Barbara Kramer
Frequent Advisor

using sendmail -v to send a txt file

Hi,

I am generating a txt file, fields separeted with ;.

Not to change the format I want to use
sendmail -v.

I know I can use

uuencode orig.txt new.txt|sendmail -v user@domanin.com

yet, I do not want to convert the file in any way, since it is being read into another system, as soon as it arrives. I can not manipulate the receiving file, for instance with uudecode new.txt

does anyone have an answer

thanks in advance

Barbara
live is great !!
7 REPLIES 7
Denver Osborn
Honored Contributor

Re: using sendmail -v to send a txt file

Is there any reason why this wouldn't work for you?

sendmail -v user@domain.com

-denver
Michael Steele_2
Honored Contributor

Re: using sendmail -v to send a txt file

uuencode is for attachements. You can also send the file in the body of the message as Denver mentioned or with mailx.

cat file | mailx -s "subject" you@yourdomain.com him@hisdomain.com her@herdomain.com
Support Fatherhood - Stop Family Law
someone_4
Honored Contributor

Re: using sendmail -v to send a txt file

cat your file | sendmail someone@somewhere.com
Steven E. Protter
Exalted Contributor

Re: using sendmail -v to send a txt file

Try the attached script. It will do the job.'

Self documented.

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
Barbara Kramer
Frequent Advisor

Re: using sendmail -v to send a txt file

thanks a mill for helping out.
Yet, I did not want to cat the file. It needs to be send as an attachment. This is why I wanted to use something like uuencode orig.txt new.txt|sendmail -v user@domanin.com

I have not tried the script from sep. Maybe someone just knows a command

Barbara
live is great !!
Steven E. Protter
Exalted Contributor

Re: using sendmail -v to send a txt file

Let me assure you that my script sends real attachments.

Its not the fact we're using the cat command, its what we cat that makes it an attachment.

Give me your email address and I'll send you /etc/issue with it.

It works in production with binary files.

It works in production with ascii files.

It's a solution. Seriously. It could stand some documentation, but it works.

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
Barbara Kramer
Frequent Advisor

Re: using sendmail -v to send a txt file

Hello Sed,

I finally had a chance to test your script.
It works well. Since Unix is only a tiny part of my job, I appriciate all the help an knowledge I can.

Thanks again

Barbara
live is great !!