http://www.perlmonks.org?node_id=965648


in reply to Mail::Sender code doesnt work with CGI on webserver

Mail::Sender has another option called MailFile and its syntax goes something like this

MailFile([from [, replyto [, to [, smtp [, subject [, headers]]]]]], m +essage, file(s)) MailFile({[from => "somebody@somewhere.com"] [, to => "else@nowhere.com"] [...], msg => "Message", file => "File"})
try the code out, don't know whether it will fix your problem.. Check this link for more details Mail::sender