Operating System - HP-UX
1752745 Members
4825 Online
108789 Solutions
New Discussion юеВ

Re: Mailx attachmend issue in UNIX Server

 
Vinod Kumar Yadav
Trusted Contributor

Mailx attachmend issue in UNIX Server

Hi Expert,

The Sendmail is working fine able to send the mail.

I facing issue the while sending mail with attachment in the diff domian.

In the same domain the attachment is going fine but in the diff domain it appears in the junk characters.

Thanks
Vinod
Jai Shiv Shankar
8 REPLIES 8
Suraj K Sankari
Honored Contributor

Re: Mailx attachmend issue in UNIX Server

Hi,

May be issue with firewall ? I am not sure.
because same problem I too also faced but in my case porblem found at my firewall rules.

Suraj
Rita C Workman
Honored Contributor

Re: Mailx attachmend issue in UNIX Server

What command do you use to send attached mail?

Have you tried other methods of sending attachments?

Rita
Michael Steele_2
Honored Contributor

Re: Mailx attachmend issue in UNIX Server

Hi

Here's my basic command, uuencode.

uuencode -m kk.txt - | mailx -s subject email
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: Mailx attachmend issue in UNIX Server

Shalom Vinod,

http://www.hpux.ws/?p=7

It uses sendmail but it gets the attachment done.

The domain issue has to do with sendmail configuration.

http://docs.hp.com/en/B2355-90685/B2355-90685.pdf

This can get complex, but I posted you the complete sendmail guide.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vinod Kumar Yadav
Trusted Contributor

Re: Mailx attachmend issue in UNIX Server

Hi,

I am using this command

mailx -s "WB Daily DG Usage Report of dated `date` " -r AutoMail@WB-OMCR-LogAnalyzer.com `cat /user3/OMCR_LOG/Reports/mail_address1.txt`


Regards
Vinod
Jai Shiv Shankar
Michael Steele_2
Honored Contributor

Re: Mailx attachmend issue in UNIX Server

Hi

Well, I can only say that the -r option is obsolete.

Hi,

I am using this command

mailx -s "WB Daily DG Usage Report of dated `date` " -r AutoMail@WB-OMCR-LogAnalyzer.com `cat /user3/OMCR_LOG/Reports/mail_address1.txt`


Try this:

cat /user3/OMCR_LOG/Reports/mail_address1.txt | mailx -s "WB Daily DG Usage Report of dated `date` " AutoMail@WB-OMCR-LogAnalyzer.com
Support Fatherhood - Stop Family Law
Dennis Handly
Acclaimed Contributor

Re: Mailx attachmend issue in UNIX Server

>Michael: Try this: cat mail_address1.txt |

You should replace that evil cat by:
mailx -s "WB Daily DG Usage Report of dated $(date)" \
AutoMail@WB-OMCR-LogAnalyzer.com < \
/user3/OMCR_LOG/Reports/mail_address1.txt

Unless mail_address1.txt is a list of additional mail aliases and not the body of the message?
Steven E. Protter
Exalted Contributor

Re: Mailx attachmend issue in UNIX Server

Shalom Vinod,

You can't fix a domain problem on the email with a mailx command.

You will have to dink with sendmail to do that.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com