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

[MacPerl] SMTP.pm when to check for errors? Also, mailing file attachments?




 First, is there a way to mail file attachments rather than putting the
data in the body of the message?

 Second, I don't know enough about these mail protocols to know what 
exactly a failure is. If I have the following code snippet:
        print "MailSessionData: hello: ", $mail->hello($me), "\n";
        print "MailSessionData: mail: ", $mail->mail($fromAddress), "\n";
        print "MailSessionData: to to: ", $mail->to($toAddress), "\n";
        print "MailSessionData: to cc: ", $mail->to($ccAddress), "\n";
        print "MailSessionData: data:", $mail->data(@lines), "\n";
        print "MailSessionData: quit:", $mail->quit, "\n";
I notice that "1" is printed whenever an action is successful. However,
what if the line
        print "MailSessionData: to cc: ", $mail->to($ccAddress), "\n";
returned failure? Would the message still be mailed to the first address,
or would the whole thing be abandoned?

thanks,
rob


 <mailto: "Robert A. Decker" comrade@umich.edu>
 Programmer Analyst - Health Media Research Lab
 University of Michigan Comprehensive Cancer Center 
 
 "Get A Life" quote #5: "In my heart I know you're right, but my perfectly
 functioning brain says you're a horse's ass." -Bob Elliott
 

--                                                             G
/\    /\   /\   /\    /\   /\   /\    /\   /\   /\    /\   / T    A
001\/1100\/10\/1010\/0110\/00\/1111\/0111\/CT\/TCGA\/GTAC\/C  A \C
110/\0011/\01/\0101/\1001/\11/\0000/\1000/\GA/\AGCT/\CATG/\GA /  G
\/    \/   \/   \/    \/   \/   \/    \/   \/   \/    \/   \/  \  T
Robert A. Decker                 voice: (313) 936-9779        A   T
Computer Consultant I                                   
Department of Radiology   "...millionaire stuntman - half jackalope."
University of Michigan                                -Chris Elliott