Welcome !
         

 Absolute path to file attached to new e-mail

Author Message
soendi

  • Total Posts : 1
  • Scores: 0
  • Reward points : 0
  • Joined: 12/13/2016
  • Status: offline
Absolute path to file attached to new e-mail Tuesday, December 13, 2016 7:00 PM (permalink)
0
Dear all,
need to have a script to have the absolute path to any file attached to a new e-mail (via SendTo menu). Is that possible?
As I can't write any scripts at all, I need your help. Tried to look for code snippets, but all I found did not work out or was created for Outlook only.
 
Perhaps, there's a method just to create a new e-mail via mailto:
(mailto:?Body=%5C%5Cserver%5Cabsolute%5Cfilepath%5Cfile.xlsx)
- so a new e-mail would be generated with "\\server\absolute\filepath\file.xlsx" in the body.
 
Furthermore, the file should be linked (not only text). This is needed, that my colleagues don't edit local copies of files, which are located already on a network storage, which is accessible for all guys.
 
Win10, Lotus Notes 9
 
Thank you so much for your help
soendi
 
<message edited by soendi on Tuesday, December 13, 2016 7:32 PM>
 
#1
    59cobalt

    • Total Posts : 2584
    • Scores: 253
    • Reward points : 0
    • Joined: 7/17/2011
    • Status: offline
    Re:Absolute path to file attached to new e-mail Wednesday, December 14, 2016 1:28 PM (permalink)
    0
    I don't think adding attachments via mailto: URLs is supported.

    What you can do is send mail via a script:
    schema = "http://schemas.microsoft.com/cdo/configuration/"
    
    Set msg = CreateObject("CDO.Message")
    msg.Subject  = "Test"
    msg.From     = "sender@example.com"
    msg.To       = "recipient@example.org"
    msg.TextBody = "This is some sample message text."
    msg.AddAttachment "C:\path\to\your.file"
    
    With msg.Configuration.Fields
      .Item(schema & "sendusing")      = 2
      .Item(schema & "smtpserver")     = "smtp.intern.example.com"
      .Item(schema & "smtpserverport") = 25
      .Update
    End With
    
    msg.Send
    Depending on the configuration of the SMTP server you may need to add credentials or change the port.
     
    #2
      Online Bookmarks Sharing: Share/Bookmark

      Jump to:

      Current active users

      There are 0 members and 1 guests.

      Icon Legend and Permission

      • New Messages
      • No New Messages
      • Hot Topic w/ New Messages
      • Hot Topic w/o New Messages
      • Locked w/ New Messages
      • Locked w/o New Messages
      • Read Message
      • Post New Thread
      • Reply to message
      • Post New Poll
      • Submit Vote
      • Post reward post
      • Delete my own posts
      • Delete my own threads
      • Rate post

      2000-2017 ASPPlayground.NET Forum Version 3.9