Sponsored Content
Top Forums Shell Programming and Scripting How to send attachment to web-based email client using mailx Post 302095484 by randomcz1 on Tuesday 7th of November 2006 03:22:04 PM
Old 11-07-2006
How to send attachment to web-based email client using mailx

hi,

i am trying to send mail with attachment to web-based email client like gmail.com using mailx. the problem is it is displayed in content rather than as attachment.

the code i am using is as follows,

uuencode test1.txt test1.txt | mailx -s "test only" aaaa@gmail.com

does anyone know how to solve this?

thanks,
Z
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

email attachment, with a message using mailx

Hi, I am trying to include a message along with an attachment with an email using mailx on AIX. uuencode Test.dat Test.dat| mailx -s 'Testing' mymail@yahoo.com < MESGFILE This only gives me the contents of MESGFILE as my message. If I remove the < FILE I recieve the attachment. What... (4 Replies)
Discussion started by: edog
4 Replies

2. Shell Programming and Scripting

HELP!!! how to send PDF file as an attachment using mailx

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)
Discussion started by: Brat
1 Replies

3. Shell Programming and Scripting

UNABLE to send 5MB attachment using mailx

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)
Discussion started by: tads98
3 Replies

4. UNIX for Advanced & Expert Users

how to send file as attachment using mail or mailx

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)
Discussion started by: kieranfoley
1 Replies

5. Shell Programming and Scripting

Mailx: How to send a attachment using mailx command

Hi All, Can anyone please provide the command for sending an mail with attachment using mailx command. Thanks in Advance :) Regards, Siram. (3 Replies)
Discussion started by: Sriram.Vedula53
3 Replies

6. Shell Programming and Scripting

send attachment and body in one mail using mailx

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)
Discussion started by: ashwin3086
4 Replies

7. UNIX for Dummies Questions & Answers

Send email with attachment and body : mailx , waiting for input , signal Control D

Hi, I am trying to send email with attacment and body using "mailx" (cat body.txt; uuencode attach.txt) | mailx -s "Attachment" abc@xyz.com When i type this command, the shell is still waiting for me to enter something in standard input and press control D before it sends a mail and... (2 Replies)
Discussion started by: aliaszero
2 Replies

8. Shell Programming and Scripting

Mailx command to send attachment file

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)
Discussion started by: ATWC
7 Replies

9. UNIX for Dummies Questions & Answers

Unable to send attachment using mailx command

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)
Discussion started by: nkarthik_mnnit
3 Replies

10. Shell Programming and Scripting

How to send a PDF attachment via MAILX?

Hi, We are using HPUX and have a script to send PDF attachment via MAILX Basically the script does the following: echo > $HOME/MY_mail_file uuencode o40881754.pdf o40881754.pdf >> MY_mail_file cat MY_mail_file | mailx -m -s "Sending PDF attachment" <email address> This script works... (7 Replies)
Discussion started by: Michel
7 Replies
LedgerSMB::Mailer(3pm)					User Contributed Perl Documentation				    LedgerSMB::Mailer(3pm)

NAME
LedgerSMB::Mailer - Mail output for LedgerSMB SYNOPSIS
COPYRIGHT
#==================================================================== # LedgerSMB # Small Medium Business Accounting software # http://www.ledgersmb.org/ # # Copyright (C) 2006 # This work contains copyrighted information from a number of sources # all used with permission. # # This file contains source code included with or based on SQL-Ledger # which # is Copyright Dieter Simader and DWS Systems Inc. 2000-2005 # and licensed under the GNU General Public License version 2 or, at # your option, any later version. For a full list including contact # information of contributors, maintainers, and copyright holders, # see the CONTRIBUTORS file. # # Original Copyright Notice from SQL-Ledger 2.6.17 (before the fork): # Copyright (C) 2002 # # Author: DWS Systems Inc. # Web: http://www.sql-ledger.org # # Contributors: # # Original Author and copyright holder: # Dieter Simader dsmimader@sql-ledger.com #==================================================================== METHODS
LedgerSMB::Mailer->new(...) Create a new Mailer object. If any arguments are passed in, a message that uses them will be automatically prepared but not sent. $mail->prepare_message(to => $to, from => $from, ...) Prepares and encodes base message for sending or adding attachments. Arguments to, from, cc, bcc Address fields for the email. subject The subject for the email. message The message body for the email. contenttype The conttent type for the body of the message, not for any attachments. notify Sets the Disposition-Notification-To header (read receipt request) for the message. This header will only be added if a from address is set. $mail->attach(data => $data, file => $file, filename => $name, strip => $strip) Add an attachment to the prepared message. If $data is specified, use the value of that variable as the attachment value, otherwise attach the file given by $file. If both a file and data are given, the data is attached. filename must be given and is used to name the attachment. $strip is an optional string to remove from the filename send with the attachment. $mail->send Sends a prepared message using the method configured in ledgersmb.conf. perl v5.14.2 2012-03-26 LedgerSMB::Mailer(3pm)
All times are GMT -4. The time now is 01:48 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy