More in this section
Forums / General Discussions / Attachement in email

Attachement in email

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
3 posts, 0 answered
  1. Anu
    Anu avatar
    72 posts
    Registered:
    17 Jun 2010
    08 Jul 2011
    Link to this post
    Hi,

    I want to send attachement of pdf file.

    IList

     

    list;

     

     

    LibraryManager LibMan;

     

     

    LibMan = new LibraryManager("Monthly_Factsheet");

     

    list = LibMan.GetContent(

    "FactsheetDate DESC");

     

    string strattachment = ((Telerik.Cms.Engine.Data.

    CmsContentBase)(list[0])).UrlWithExtension.ToString();


    in strattachement , if got the path of the pdf file as - "~/Monthly_Factsheet/Monthly_Factsheet/aspnet_tutorial04_MembershipSetup_cs.sflb.ashx"

    Now i want to send this file as attachement through mail
    How should i do this?

    Please help.........

    Thanks in advance....




     

  2. Anu
    Anu avatar
    72 posts
    Registered:
    17 Jun 2010
    11 Jul 2011
    Link to this post
    Hi,
    Any solution for above......
  3. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    Registered:
    12 Sep 2017
    11 Jul 2011
    Link to this post
    Hi Anu,

    If a download query string is added to the link of a file in a library, and is set to true, the file will be directly accessed for download. If false (as is by default), the file will be opened for viewing instead.

    Example:

    http://www.my_domain.com/MyFile.sflb?download=true 



    Kind regards,
    Ivan Dimitrov
    the Telerik team
    Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Register for webinar
3 posts, 0 answered