Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

Hi,

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 =>'user.name@address.com', Subject =>$xls, Type =>'TEXT', Data => $text); MIME::Lite->send('smtp', 'your.server.name, 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.

J.C.


Comment on Re: Hyperlinks in Mail::Outlook Module
Download Code
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?

      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.

      J.C.

      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.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (14)
As of 2014-09-19 16:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (143 votes), past polls