[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Can't get sendmail to put subject right...



You might need to chomp your $dest[0].  I don't know about what $dest[0] is
or where it's coming from, but I've had the problem of having too many line
breaks on the end.

What does the email source look like?  Are there more returns after the
subject?


-------------------------------
J o s e p h   E r i c k s o n
S o f t w a r e   P u r v e y o r

EYEMG - interactive media group
80 s. summit #500, akron, ohio 44038
http://www.eyemg.com
fone-330.434.7873
phax-330.253.2186 

> From: Thomas De Groote <Thomas.degroote@rug.ac.be>
> Date: Tue, 25 Jul 2000 20:59:45 +0200
> To: macperl@macperl.org
> Subject: [MacPerl] Can't get sendmail to put subject right...
> 
> Help me please,
> 
> I have to finish this project before tomorrow, and I ran into a
> problem...
> 
> I am using sendmail directly from within a script, and my mails come
> through, but without subject. That is, the subject comes inside the
> mail, and not in the headers. Can anyone explain me what to do ? Here is
> the chunk of code (this is not a complete program !)...
> 
> 
> $mailprogram = '/usr/lib/sendmail';
> 
> open(MAIL,"|$mailprogram -t");  #  || &error("Kon mail
> programma niet openen.")
> print MAIL "From: $FORM{'reply'}\n";
> print MAIL "To: $dest[0]\n";
> print MAIL "Subject: $subject\n\n";
> print MAIL "$mailbody\n\n";
> close MAIL;
> 
> Thanks in advance,
> 
> Thomas De Groote
> 
> 
> # ===== Want to unsubscribe from this list?
> # ===== Send mail with body "unsubscribe" to macperl-request@macperl.org
> 


# ===== Want to unsubscribe from this list?
# ===== Send mail with body "unsubscribe" to macperl-request@macperl.org