Send a link through lotus notes automated mail

Hi,

I am sending out automated emails via lotus notes. In the Subject i would like too attach a link, at the moment though its not sending as a link, can i add some tags toi make this happen?

My code is..

"Please find attached your Sales Manager Horis Reports for January 2015." & _
    "If you have any questions around the content of this report, please contact your regional SPM team in the first instance. A guide to reading the Sales Dashboard can be found in the following link - http://teams.global.xyz/cmb/abc-Sales-Portal/PCM%20Docments/boris/boris%20Dashboard%20User%20Guide.pdf -   If you have received this email in error, please delete and contact the regional mailbox in order for you to be removed from future monthly automated mailings."

Thanks
Seamus2626Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Sjef BosmanGroupware ConsultantCommented:
Normally, mail clients convert texts that start with http:// or https:// to clickable links. As far as I know, you shouldn't have to do anything.
0
Seamus2626Author Commented:
Hi Sief,

This is the code im running and it is not sending the link as a link, just text

Many thanks

Set MailDoc = Maildb.CREATEDOCUMENT


MailDoc.Form = "Memo"


' Select range of e-mail addresses
Recipient = Array(str1)
MailDoc.Principal = "eu.spm@abc.com"
MailDoc.SendTo = Recipient
MailDoc.Subject = "Sales Manager Loris Report Jan 2015"

 MailDoc.Body = _
    "Please find attached your Sales Manager Loris Reports for January 2015. " & vbCrLf & _
    "If you have any questions around the content of these reports, please contact your Regional SPM team in the first instance. " & vbCrLf & _
    "A guide to reading the Sales Dashboard can be found in the following link:<a href='http://teams.global.abc/cmb/PCM-Sales-Portal/PCM%20Docments/LORIS/loris%20Dashboard%20User%20Guide.pdf'>http://teams.global.abc/cmb/PCM-Sales-Portal/PCM%20Docments/LORIS/Loris%20Dashboard%20User%20Guide.pdf</a> " & vbCrLf & _
    "If you have received this email in error, please delete and contact the regional mailbox in order for you to be removed from future monthly automated mailings."

Open in new window

0
Sjef BosmanGroupware ConsultantCommented:
You cannot put ANY html in your body. Try to remove the entire A-tag with the link, and leave only the textual link.

"A guide to reading the Sales Dashboard can be found in the following link: http://teams.global.abc/cmb/PCM-Sales-Portal/PCM%20Docments/LORIS/loris%20Dashboard%20User%20Guide.pdf" & vbCrLf & _
0
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

Sjef BosmanGroupware ConsultantCommented:
You see, even the browser automatically converts it (maybe it has to be enabled through some option).
0
Seamus2626Author Commented:
Ive removed the html tags

Its returning as text now but no link

if I forward the email afterwards it turns to a hyperlink

So the first mail received is not a hyperlink, but if I forward that mail, it becomes a hyperlink??!!

Any ideas?
0
Sjef BosmanGroupware ConsultantCommented:
No, not quite, I think... Most mail clients automatically convert text that looks like a link in a clickable link. Try to send a mail to your Gmail address or so, some external address, and have a look to see what it displays.
0
Seamus2626Author Commented:
Yes, you send it external and it sends as a link - lotus notes is heartbreaking
0
Sjef BosmanGroupware ConsultantCommented:
To be honest, this time it isn't even Notes' doing: it's the other end that recognizes an HTTP link...
0
Seamus2626Author Commented:
But its all being sent to notes - everyone im sending this too uses lotus notes :(
0
Seamus2626Author Commented:
Hi Sief,

I finally cracked it!

Recipient = Array(str1)
MailDoc.Principal = "eu.xyz@abc.com"
MailDoc.SendTo = Recipient
MailDoc.Subject = "Sales Manager Boris Report Jan 2015"

Set mailbody = MailDoc.CreateRichTextItem("Body")
Call mailbody.AppendText("Please find attached your Sales Manager Boris Reports for January 2015. ")
Call mailbody.Addnewline(1)
Call mailbody.Addnewline(1)
Call mailbody.AppendText("If you have any questions around the content of these reports, please contact your Regional XYZteam in the first instance. ")
Call mailbody.Addnewline(1)
Call mailbody.Addnewline(1)
Call mailbody.AppendText("A guide to reading the Sales Dashboard can be found in the following link:")
Call mailbody.Addnewline(1)
Call mailbody.Addnewline(1)
Call mailbody.AppendText("http://teams.global.abc/cmb/LYC-Sales-Portal/LYC%20Docments/BORIS/Boris%20Dashboard%20User%20Guide.pdf")
Call mailbody.Addnewline(1)
Call mailbody.Addnewline(1)
Call mailbody.AppendText("If you have received this email in error, please delete and contact the regional mailbox in order for you to be removed from future monthly automated mailings.")
Call mailbody.Addnewline(2)

Open in new window

0
Sjef BosmanGroupware ConsultantCommented:
Splendid!
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Lotus IBM

From novice to tech pro — start learning today.