I've set up an XMod form for users to request a PDF catalog file to be sent to them via email attachment. The PDF files live on the web server in a directory I created. (The web paths would resolve to "http://www.website.com/Portals/0/Catalogs/catalogA.pdf")
They can request catalog A, catalog B, or both. The user will receive either one or two e-mails. (as I don't believe XMod currently supports multiple attachments in a single e-mail response)
The form validates, but I consistently get errors in my Event Viewer about DNN's SendMail function being unable to resolve the filepaths for these attachments, and it's been a process of blindly throwing darts at a board to find the right one. Examples:
Path in XMod code: /Portals/0/Catalogs/catalogA.pdf
Resolves to: c:\Portals\0\Catalogs\catalogA.pdf
Path in XMod code: ~/Portals/0/Catalogs/catalogA.pdf
Resolves to: c:\Portals\0\Catalogs\catalogA.pdf
Path in XMod code: /Admin/File-Management/Portals/0/Catalogs/catalogA.pdf
Resolves to: c:\Admin\File-Management\Portals\0\Catalogs\catalogA.pdf
Path in XMod code: ../Portals/0/Catalogs/catalogA.pdf
Resolves to: c:\windows\system32\Portals\0\Catalogs\catalogA.pdf
Path in XMod code: Portals/0/Catalogs/catalogA.pdf
Resolves to: c:\windows\system32\inetsrv\Portals\0\Catalogs\catalogA.pdf
So what would "http://www.website.com/Portals/0/Catalogs/catalogA.pdf" translate to for a proper relative system path in this case?