Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Hyperlinks in Mail::Outlook Module

by Anonymous Monk
on Jan 20, 2012 at 02:37 UTC ( #948871=note: print w/replies, xml ) Need Help??

in reply to Hyperlinks in Mail::Outlook Module


I don't know if this will help with the link problem, but you can set the mail server using MIME::Lite -

my $msg = MIME::Lite->new( To =>'', Subject =>$xls, Type =>'TEXT', Data => $text); MIME::Lite->send('smtp', ', Timeout=>60 ); $msg->send;

You can find the Outlook server by going to Account Settings and double-clicking on the account name.
Perhap MIME::Lite will let you do the links as you want to.


Replies are listed 'Best First'.
Re^2: Hyperlinks in Mail::Outlook Module
by BJ_Covert_Action (Beadle) on Jan 20, 2012 at 04:09 UTC

    I actually have a somewhat separate question related to that. Initially, I tried to use MIME:Lite. However, I couldn't get the mail server to configure correctly. My current mail server, according to my Outlook account settings is listed as:outlook.mycompany.corp ... I took that to mean that the mail server is a Microsoft Exchange server. Does SMTP work with an exchange server?

      It's not such easy to find out a right Exchange server nowerdays. Starting with Exchange 2007 you clients connects to a CAS or Mailbox Server which may or may not be colocated with a HUB server which has an SMTP instance running. In addition the HUB server may reject SMTP mail due to security. The best way would be to ask your Exchange admin what is the best way to send Emails from your application.

      I would also prefer not to use Outlook if don't have to. Using a usual SMTP mail module allows you to run the application without Outlook installed and maybe even move to another operating system without rewriting the application. And there is one error source less in the process.

        I agree wholeheartedly with your assessment regarding the utility of cutting Outlook out of the loop. However, it's important to remember that, often, folks like me are doing a lot of their perl hacking in an office environment where they don't necessarily have the authority to configure an SMTP server themselves. So, for now, my hands are tied to using the OS and e-mail environment that my company has handed down.

      That's how I've done it in the past.

      But I like your Win32::OLE solution, I may do some messing with that myself.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2019-12-11 03:05 GMT
Find Nodes?
    Voting Booth?

    No recent polls found