We are using HPUX and have a script to send PDF attachment via MAILX
Basically the script does the following:
This script works fine when sensing the attachment to MS Outlook or Gmail,
but it does not work when using Yahoo mail, we see the PDF attachment but when we try to retrieve it, it fails indicating an invalid format. It appears that Yahoo mail does not know how to decode the attachment done via uuencode.
.
I've been reading different notes regarding this issue, one suggestion was to use "mutt" but unfortunate it does not seem available for HPUX.
.
I've also tried MIME/base64 code that I found on different forums but it did not work either.
.
Has anyone been able to send PDF attachment to Yahoo mail via a Unix command line (ex: Mailx, Sendmail etc..) ?
If so how was this achieved ?
.
Thanks in advance
Last edited by Corona688; 05-02-2018 at 03:44 PM..
Hi there,
i am very new in the unix sector. (i work on HP UX, an Sun Solaris)
i can write some simple scripts,.....
but now i will wirte a script with "mail".
i would like to send a pdf file to a mail recipient.
But if i try it with "mail -s "email@adress" < "filename(with path)" it... (3 Replies)
Hi,
iam using the following command:
uuencode file1.pdf file1.pdf|mailx - s "waz up?" xyz@domain.com
Iam recieving an encoding error when i try to open the attachment.
Pls help..very urgent!!! (1 Reply)
hi,
i've created a script that sends out an email using the mailx and uuencode command. the script is ok, but when a 5MB attachment is sent, there are time that the intended recepients does not receive any email. i tested it and the issue is intermitent. please help on how to troubleshoot.
i... (3 Replies)
I am using the following command to send PDF attachment with a mail.
uuencode <attachment.pdf> <attachment.pdf>|mailx -s <subject> <mail_id> < <Message_file.txt>
This one send the message with attachment. I would like send PDF attachment with the mail
Can any one help with this issue ?
... (0 Replies)
I have a need to send a file from the unix command line to be sent as an attachment. Is this possible? That is when I open my outlook email I need to file to appear as an attachment.
Also, is there a way to use the mail binary (not mailx) to modify the "reply address". mailx -r works but I need... (1 Reply)
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Hi,
Our requirement is to send an attachment and content in a single mail. I am using the below command to send attachement.
---------------------
(uuencode $exp_file $exp_file) |mailx -s "$email_subject" $EmailRecipients
--------------------
I m not able to send any message in the... (4 Replies)
I am attempting to write a script where I can pass in parameters ( to , from, the location of a pdf attachment ) and send an email that has HTML for the body content and a PDF as an attachment.
I have failed to achieve this with sendmail and mutt. I recently found this.
If there are any... (2 Replies)
Hi,
I need to send a attachment which has space in the file name as: "ABC Data Extract.txt" which is present in the location /home/projects/txt
i am using
/home/projects/scripts
mailx -s "Sub" email_id "/home/projects/txt/ABC Data Extract.txt"
but i am not getting the attachment. (7 Replies)
I am unable to send email with attachment using the mailx command. Without the attachment, the email goes through file.
This is the command I use.
Works : $ echo "Test" | mailx -s "Test" username@website.com
Fails : $echo "Test" | mailx -a all-dss-accounts.txt -s "Test"... (3 Replies)