Send mail from AIX 7.1


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Send mail from AIX 7.1
# 1  
Old 03-24-2015
Send mail from AIX 7.1

Hi,
My OS version is AIX 7.1. I am trying to send an email with a file to my mail address. sendmail or uuencode does not work. Can someone give me the correct format ?
I use:
Code:
uuencode <file name> | mail -s "subject" emailaddress

Thanks

Moderator's Comments:
Mod Comment Use code tags, thanks.

Last edited by zaxxon; 03-24-2015 at 06:18 AM.. Reason: code tags
# 2  
Old 03-24-2015
Hello Nagesh,

Could you please try following format and let me know if this helps you.
Not tested though.
Code:
cat Input_file | uuencode Input_file | mailx -s"test" ravinder.singh@balle_balle.com

Thanks,
R. Singh
# 3  
Old 03-24-2015
The command does not work. The problem is I cannot find where the issue is, whether its with the 'mail' command or 'uuencode' command or if the server is not able to send the mail to my email ID..

Thanks
# 4  
Old 03-24-2015
Why don't you break that problem down into several small steps? Test the mail first by running mail a@b.c and entering a few chars of text on the keyboard. If that works, supply a seven-bit ASCII text on stdin to mail. If that works, focus on uuencode, which is only necessary if your text is not ASCII.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

How to send large file through E-mail IN Unix AIX

hI ALL, I am newbie to Unix.There are 2 GB files in UNIX that should be sent to one of my friend who is working on Windows Environment.Is there any way to send these file to him? By Compressing like that? Can anyone help on this? With thanks, Aravindh (4 Replies)
Discussion started by: Aravindhbabu
4 Replies

2. Shell Programming and Scripting

send mail from AIX unix with multiple attachment

Hi, I have the below code for sending email from AIX unix. I need the body of the mail should content of errornotify.txt file. i tested with cat errornotify.txt, it is not working...Also i need multiple attachments. Can you please help me out on this. ( echo "From:cus@xxx.xx.com" echo... (3 Replies)
Discussion started by: rsivasan
3 Replies

3. AIX

Cannot send mail from AIX 5.2 to out side

Hi... help me please Previously, my server could send the email from deamon to out side but now it could not. I tried to use command "mailq -v", it show error as below that "alias database unavailable". Does anyone help me, what should I fix? ... (1 Reply)
Discussion started by: mis1864
1 Replies

4. AIX

send mail configuration in AIX server

Hi All, How to configure sendmail service in AIX server ? Please tell me what all changes has to be made in sendmail.conf file. Please help in this issue to configure it. Thanks jack (1 Reply)
Discussion started by: jack00423
1 Replies

5. Programming

send mail performance problem in AIX

Hi All, Our application is designed to send the emails. we use standard C lib to send the mails using send() function. This works fine on Solaris,HP UX and windows, but on AIX the performance is very slow. it takes around 32 sec to send a simple mail whereas in Solaris 2-3 sec. I would like to... (2 Replies)
Discussion started by: shrihari_s
2 Replies

6. UNIX for Dummies Questions & Answers

AIX send mail with HTML message body and a binary attachment

I'm trying to script sending an e-mail message on an AIX 5.x server with the following requirements: 1. command line switch to specify file name containing message body in HTML format 2. command line switch to specify file name of a binary attachment 3. command line or input file to specify... (4 Replies)
Discussion started by: G-Man
4 Replies

7. AIX

Why a core file is created whenever I send a mail in AIX

Whenever i send a mail like: mail <mail id>, a core file is created under /var/spool/mqueue/ path. This is increasing the space of the file system. Why is that core file get created. Does it happens normally. I am getting an errpt error as: LABEL: CORE_DUMP IDENTIFIER: B6048838 ... (0 Replies)
Discussion started by: sreereddy
0 Replies

8. AIX

How to send a mail with an attachment from AIX 5.2 OS?

Has anyone written a script to attach a file when sending an email using the mailx command? (1 Reply)
Discussion started by: mintu41
1 Replies

9. AIX

Configure AIX v5.1 for send mail

Hi, I wish to send a mail via ksh using this command: cat mailfile | mail -s "My Project." gio123bg@hel.com Is it necessary to configure some file? If yes, in which way? May you explain me all steps necessary to implement the above command? Many thanks in advance for your kind... (0 Replies)
Discussion started by: gio123bg
0 Replies

10. UNIX for Advanced & Expert Users

how to send mail from aix to lotus with dns

hi , before installing dns on my server, all was ok I was able to send message from aix to my lotus notes server thanks to this command: mail -v aaaaaaaaaa@bbbbbbb.fr in my /etc/hosts , there was xx.xx.xx.xx lotus xx.xx.xx.xx server name in my... (3 Replies)
Discussion started by: hubert
3 Replies
Login or Register to Ask a Question