I have a Perl script which sends emails using mime::lite.
$EmailContent is created in a home grown text editor and the added as a var to the body in the script below.
All has been working fine but I get a strange problem when I put in a link to a .pdf file.
Adding the line:-
creates a proper link in Outlook Express but the link appears as
in Windows mail.
Can anyone suggest a cure?
Keith
$EmailContent is created in a home grown text editor and the added as a var to the body in the script below.
Code:
my $msg = MIME::Lite->new(
From =>'email@domain.co.uk',
To => $results1[0],
Subject =>'NewsLetter',
Type =>'multipart/related',
Date => '0'
);
$msg->attach(
Type => 'text/html',
Data => qq{
<body>
$EmailContent
</body>
},
);
$msg->send();
All has been working fine but I get a strange problem when I put in a link to a .pdf file.
Adding the line:-
Code:
Click <a href='[URL unfurl="true"]http://www.domain.co.uk/graha.pdf'>here</a>[/URL] to see a short video about it.
Code:
[URL unfurl="true"]http://www.domain.co.uk/grah!%20a.pdf[/URL]
Can anyone suggest a cure?
Keith