HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: problem using mailx to attach pdf files
Operating System - HP-UX
        1839368
        Members
    
    
        2731
        Online
    
    
        110145
        Solutions
    
Forums
        Categories
Company
Local Language
                
                  
                  back
                
        
                
        
                
        
                
        
        
        
                
        
                
        
        
        
                
        
              
              Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
                
                  
                  back
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
                
            
            
                
            
                
            
                
            
                
            
            
                
            
                
            
            
                
            
                
              
            Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Blogs
        Information
        Community
Resources
Community Language
        Language
        Forums
Blogs
Topic Options
			
				
					
	
			
		
	- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 01:52 AM
11-17-2004 01:52 AM
			
				
					
						
							problem using mailx to attach pdf files
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						I'm using the following script to send mail with a standard body and pdf attachments.
(cat statement.txt
uuencode $1 $1) |mailx -m -s "Statement" $2
I pass the name of the pdf file and the email address to this script. It works correctly when the mail is received on our internal mail system - but when I send the mail to an external account (yahoo.com or msn.com )the pdf file is inline - not an attachment.
Can someone explain why this is happening, we will eventually use this process to mail statements in pdf format to customers.
Thanks,
Patti
		
		
	
	
	
(cat statement.txt
uuencode $1 $1) |mailx -m -s "Statement" $2
I pass the name of the pdf file and the email address to this script. It works correctly when the mail is received on our internal mail system - but when I send the mail to an external account (yahoo.com or msn.com )the pdf file is inline - not an attachment.
Can someone explain why this is happening, we will eventually use this process to mail statements in pdf format to customers.
Thanks,
Patti
		3 REPLIES 3
	
	            
            
		
		
			
            
                - Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 01:56 AM
11-17-2004 01:56 AM
			
				
					
						
							Re: problem using mailx to attach pdf files
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						Hoe about following
uuencode $1 $1 | mailx -s "Subject" $2 < statement.txt
Anil
		
		
	
	
	
uuencode $1 $1 | mailx -s "Subject" $2 < statement.txt
Anil
	There is no substitute to HARDWORK
			
			
				
			
			
			
			
			
			
		- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 02:04 AM
11-17-2004 02:04 AM
			
				
					
						
							Re: problem using mailx to attach pdf files
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						That didn't work - I did not get the attachment - just the message body.
Just before I posted this I tried adding the -m option to mailx. Originally I thought it was still failing - but I was wrong.
With the -m option it works correctly regardless of where I send the message.
Closing....
		
		
	
	
	
Just before I posted this I tried adding the -m option to mailx. Originally I thought it was still failing - but I was wrong.
With the -m option it works correctly regardless of where I send the message.
Closing....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2004 02:06 AM
11-17-2004 02:06 AM
			
				
					
						
							Re: problem using mailx to attach pdf files
						
					
					
				
			
		
	
			
	
	
	
	
	
			
				
					
					
						working now
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		
		
		
	
	
	
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
		
	
	
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP
