This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Workflow Sending a Link by Email to a Non User

Former Member
Former Member
Hello M-Files Community,

I'm new to M-Files, so apologies if I ask a stupid question. I have been reading the forum, but can't seem to find the answer to my question, something I think should be really simple to achieve. I'm trying to get a workflow to send an email with a link to an address that is not attached to any specific user.

I've tried using the Send Notification action, but can only seem to send to Users.

I've tried building what I need in VBScript but can't seem to figure out the code/property values necessary to build the link.

Can anyone offer some guidance.

Thank you.
  • Former Member
    Former Member
    Hi Gruetzi,

    We have setup the same functionality using the following script within a workflow state. You will need to make some obviously adjustments:


    Consultant = PropertyValues.SearchForProperty(1055).TypedValue.DisplayValue
    Customer = PropertyValues.SearchForProperty(1034).TypedValue.DisplayValue
    ExpiryDate = PropertyValues.SearchForProperty(1036).TypedValue.DisplayValue
    AccountManager = PropertyValues.SearchForProperty(1050).TypedValue.DisplayValue
    SerialNumber = PropertyValues.SearchForProperty(1065).TypedValue.DisplayValue

    strSMTPFrom = "Your Name "
    strSMTPTo = "To Address"
    strSMTPRelay = "SMTP Server IP"
    strSubject = "Subject"
    'strAttachment = "full UNC path of file"
    strTextBody = "Type your Body here. Use " + Consultant + "," + VbCrLf + VbCrLf + " if you would like to add lines and metadata fields within the body"


    Set oMessage = CreateObject("CDO.Message")
    oMessage.Configuration.Fields.Item("">schemas.microsoft.com/.../sendusing") = 2
    oMessage.Configuration.Fields.Item("">schemas.microsoft.com/.../smtpserver") = strSMTPRelay
    oMessage.Configuration.Fields.Item("">schemas.microsoft.com/.../smtpserverport") = 25
    oMessage.Configuration.Fields.Update

    oMessage.Subject = strSubject
    oMessage.From = strSMTPFrom
    oMessage.To = strSMTPTo
    oMessage.TextBody = strTextBody
    'oMessage.AddAttachment strAttachment


    oMessage.Send


    Good luck.
  • You could also consider the option to add the receiver as a M-files user without a license and mark the user Disabled to avoid any chance for the user to enter the system. Even thought the user is disabled, I believe you can send messages using standard notification to that user provided the mail address is registered in the user account.