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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Question on sendmail setup? 3

Status
Not open for further replies.

pmcmicha

Technical User
May 25, 2000
353
I have a script that runs a report everyday and I want to include a function to send the results to a internet based email address. The email would have to include two attached files and it would be going to the same two people everyday. Can sendmail do this? I have gone over it somewhat, but I did not find anything I was looking for.

OS: SCO Unixware 7.1.1
Sendmail is installed

Thanks in advance.
 
Yes, sendmail can do this. Before it can deliver mail you will need to tell it what your SMTP mail forwarding host is.

You will need to modify the sendmail.cf file, look for a commend marked "mail forwarding host" or similar, and then restart sendmail.

This file is complex, take care please, and take a backup of it first. Mike
______________________________________________________________________
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
If you want to send 2 "attached" files, no, then sendmail cannot do it natively.

You will need to write something which will create the mime encoding so the file info will be received on the target side as attachments rather than embodied.

I have a perl script which will do multiple attachments if this would interest you, just let me know and I can post it here. IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
Aixmurderer - this is quite a frequently asked question - would you like to make a FAQ of your script? I never have done because the script I used to do this with is still with my previous job..... Ho hum.... So - it would be very welcome. Mike
______________________________________________________________________
"Experience is the comb that Nature gives us after we are bald."

Is that a haiku?
I never could get the hang
of writing those things.
 
Posted a shell script version in the FAQ: faq80-1843
Some modifications may be required to suit your needs.

Enjoy....

I will post a more simple shell script as well for single attachments only.

Multiple attachments Perl script to follow later.
IBM Certified Specialist - MQSeries
IBM Certified Specialist - AIX 5 pSeries System Administration
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top