Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Mail::Outlook - it works but without attachment

by Anonymous Monk
on Aug 13, 2012 at 11:56 UTC ( #987101=note: print w/replies, xml ) Need Help??

in reply to Mail::Outlook - it works but without attachment

Also add  Win32::OLE->Option(Warn => 3); (or Warn => 2 )

Replies are listed 'Best First'.
Re^2: Mail::Outlook - it works but without attachment
by vagabonding electron (Chaplain) on Aug 13, 2012 at 12:20 UTC
    Thank you very much!
    It seems that Outlook did not see the network drive - as I changed the $file to "C:/Temp/Text.txt" the email came with the attachment.

    The dd [ $message->display ] produced [1] if the email came without attachment, in the last run (as email came with attachment) there were no output (I put the line as the last line in the script).
    The Win32::OLE->Option(Warn => 3); produced a message that an exception error in PROPERTYPUT "To" occured at the line 380 of This line deals with the "To" field ($self->{message}->{To}      = $self->{To}; ) and it occures even after the successful delivery of the email (with or without an attachment). I have just used my address to test the email.

    Thank you very much again!

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://987101]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (13)
As of 2016-10-21 13:22 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (289 votes). Check out past polls.