in reply to Cannot get Net::SMTP to print file path with spaces properly

It sounds like it's entirely up to the email client on how it parses for links ... will it work to send a HTML link?
my $s = "\\\\server\\weekly reports\\report.txt"; my $url = $s; $url =~ s#\\#/#g; $url = 'file:/' . $url; $smtp->datasend( sprintf('<a href="%s">%s</a>', $url, $s) );
Update: added the proper file:/// syntax

Replies are listed 'Best First'.
Re^2: Cannot get Net::SMTP to print file path with spaces properly
by yankeeblue (Novice) on Jul 13, 2005 at 15:31 UTC
    I figured it out (finally found it in Outlook help). I needed to put angle brackets around the path.

    $smtp->datasend("<\\\\server\\weekly reports\\report.txt>");
Re^2: Cannot get Net::SMTP to print file path with spaces properly
by yankeeblue (Novice) on Jul 13, 2005 at 14:45 UTC
    Thanks for the info but that didn't work. It showed up in the e-mail as:

    <a href="file:///server/weekly status/report.txt">\\server\weekly status\report.txt</a>
      what is the target email client? is support for html avilable/turned on?
        I'm using Outlook 2002, sending the mail via the SMTP server. On the client that I'm running the script on I have HTML turned on. Maybe the problem is with the SMTP server?