Mail / MailX with attachments issues

Soldato
Joined
31 Oct 2005
Posts
8,624
Location
Leeds
Hoping someone can shed some light on the below

If I run

PHP:
uuencode filename filename | mail emailaddress

I receive a lovely email with the attachment of my choice

However if I run

PHP:
uuencode filename filename | mailx -s "subject here" emailaddress

I receive an email, with a subject, but the attachment in uuencode format(unreadable), WITHIN the body of the email.

To me it seems a config issue, however if anyone has any pointers, or an way to get MAIL to have a title.

Cheers
 
Soldato
OP
Joined
31 Oct 2005
Posts
8,624
Location
Leeds
Solved it, should you ever stumble across the same problem

-m is required

PHP:
uuencode filename filename | mailx -m -s "subject here" emailaddress
 
Top Bottom