Sending an Email with Attachments in HP-UX

While doing other stuff, I just tried to mail a file as I think this can be handy for my future needs.

[vinson:root]/root # uname -a
HP-UX vinson B.11.23 U ia64 2575904424 unlimited-user license
[vinson:root]/root # cd /var/adm

I need my backspace to delete so I used this - after typing "stty erase" simultaneously press CTRL + BAKCSPACE on the keyboard and hit ENTER.

[vinson:root]/var/adm # stty erase ^?

This is where the main part of course, how to send an email with attachments.

[vinson:root]/var/adm # uuencode new.secrets new.secrets | mailx -m -s "Send email to MMOND" mmond@nn.com
[vinson:root]/var/adm # tail -f /var/adm/syslog/mail.log
Mar  1 13:46:34 vinson sendmail[9108]: v21CkYD09108: from=mzmo, size=97, class=0, nrcpts=1, msgid=<201703011246.v21CkYD09108@vinson.nn.dk>, relay=root@localhost
Mar  1 13:46:35 vinson sendmail[9110]: v21CkYD09108: to=mmond@nn.com, ctladdr=mzmo (8811/804), delay=00:00:01, xdelay=00:00:01, mailer=relay, pri=120097, relay=relay.nnit.com. [], dsn=2.0.0, stat=Sent (<201703011246.v21CkYD09108@vinson.nn.dk> [InternalId=76602766] Queued mail for delivery)

I also read this article about how to do it if we need multiple files though I haven't tried it myself.

No comments:

Post a Comment