Forum Moderators: coopster & phranque

Message Too Old, No Replies

SendMail Error when ther is an attachment

         

walker

4:09 pm on Oct 15, 2003 (gmt 0)

10+ Year Member



I am testing a piece of code on a LINUX server with fasthosts, the follwoing works until I have an attachment.

open (MAIL, "¦/usr/sbin/sendmail -t -oi -f proposal\@site.co.uk $i") ¦¦ die "Can't open $mailprog!\n";

Any thorghts at all?

Kind Regards

Walker

[edited by: jatar_k at 6:30 pm (utc) on Oct. 15, 2003]
[edit reason] generalized [/edit]

marcs

2:04 am on Oct 16, 2003 (gmt 0)

10+ Year Member



Have you uuencoded the attachment first? Sendmail only deals with text messages, so you'd need to convert/encode the attachment to text first.