Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sending mail via a remote mail server. 1

Status
Not open for further replies.

stephnane

Technical User
Jun 25, 2004
34
0
0
FR
Hi.

I Need to know how I can send mail (with command line), with attached-file if I want, via another mail server.

Is there any native tools, do I have to install one mail tool ?

thanks
 
Have you tried:


uuencode /myaixdir/myaixfile.txt pcfile.txt | mailx -s "my subject" myemail@myhost.com


I would fully qualify the aix "myaixfile.txt"
and you can name the pcfile.txt whatever you want the attachment to be called.

??

I don't know exactly what you mean by via another mail server, but this is how I would send an email with an attachment from the command line.

Hope this helps
 
my AIX machine has no SMTP server configured by default.
I'm looking for a command where we specify a mailserver :
ex :

mymailer -sender "me@toto.fr" -to ... -smtp "mailserver" ...


thanks
 
Hi

thanks hfaix for this technic :)
Stephnane u can add your mail relay in /etc/sendmail.cf : DSmyrelaymailhost
However, it is a global setting for all your system.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top