Link to home
Start Free TrialLog in
Avatar of saibsk
saibsk

asked on

sendmail in perl script

I have this bit of code in my perl script.

open STDOUT,'|sendmail user@domain.com' or die $!

How can change this send an attachment, body as well as subject? Please advise.
Avatar of FishMonger
FishMonger
Flag of United States of America image

Avatar of Tintin
Tintin

Ditto on the MIME::Lite suggestion.
Avatar of saibsk

ASKER

I can't download any modules on the box. I need to use some unix mail command .....
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of saibsk

ASKER

I dont' have the perms to dowonload. But in the above code how do i attach the file
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
When you say you don't have permission to download, do you mean your company policy disallows it, or you are not connected to the Internet?
Avatar of saibsk

ASKER

company policy.