Can someone please tell me what I am doing wrong? I am trying to send an email with an attachment via shell script. The following is the finalized output. Basically it’s just a sentence and a gif attachment. The sentence appears fine when receiving the email but the attachment is always 0 bytes (receiving email-using outlook). I received this 'skeleton' from another person who says it works; however, I'm unable to get it working.
I am able to send text only mail as well as graphic only using:
for the graphic.
I'm not familiar with sendmail so any help would be greatly appreciated.
Lord Blood
I am able to send text only mail as well as graphic only using:
Code:
uuencode w.gif w.gif | /usr/lib/sendmail someone@somewhere.com
I'm not familiar with sendmail so any help would be greatly appreciated.
Lord Blood
Code:
MIME-Version: 1.0
TO: someone@somewhere.com
FROM: someone@somewhereelse.com
SUBJECT: attachment try
Content-Type: multipart/mixed; boundary=boundarystring
--boundarystring
Content-Type: text/plain;
attachment is a logo.
--boundarystring
Content-Type: application/octet-stream; name="w.gif"; type=binary
Content-Disposition: attachment; filename="w.gif"
Content-Transfer-Encoding: X-uuencode
begin 644 w.gif
M1TE&.#EAR !, /< -/3T_K.!=O;V\S,S(RO[OGY^;2/ AF=(,+"PM"VL^V#
M=-:J @XUB:L4 A=1S$=WX&A5#]3NU6N6[%VA7F4,!-OE^ <F:/[^_J[%\+RMO.)+-J;=J6?2;;*YRK6:DO7U]822LAA*MM(H$>SP^C-EU/#Q\>[N[_5H5'6'
MK8AM K2SLRY9M8T. 4?"3I>6E>FZ!,C!N_S\_&Z,S[6GE5N+ZN7M]_EW9/OL
MZ:RKK"M-E>CHZ/SR[//Y_2-:T 1R";*LJ!A%IP%3 ;S"R,,9 ^;FYNFSJ_K:
MU7FD\%!NK]_?W]C=XO24A^;CVEMLD_7/)_O"N<78^/?JDY6JV)!:4Y&(=='+
MR$93<J.BHIBAM'5]A?_\;L[2V DZH]71S*2JN(=I9=$Y).W=V[%U;]:6C>+S
MX_/A=LC-T]2Q+/_XI</%RLI^=+(D$O[H!.'J[*RPM*V:4?FIG+,W)KF'@;.P
MK>[05?_\[/?W]_!:1,.; FEI;=[;T_[CWCQOW8:'A_+V_=7:W9F%@OSZ(O?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