GROUP CC Mailing for Vouchers

Discussion in 'Tally Developer' started by Vikram, Jun 15, 2012.

    
  1. Vikram

    Vikram Member


    Dear Sir,

    Now default Tally can send only one CC per mail ,but i want to send mail for 2 or more CC ,Please help!

    Please find below code for reference
    ;;--------------------------------------------------------------
    ;;Code to accomodate more than one CC receipient.
    ;;------------------------------------------------
    [#Line: DSP MailCC]


    Option : DSP MailCC Optioned : $$IsVoucher

    [!Line : DSP MailCC Optioned]

    Local : Field : DSP MailCC : Delete : Table
    Local : Field : DSP MailCC : Delete : Setas
    Local : Field : DSP MailCC : Type : String : Forced
    Local : Field : DSP MailCC : Dynamic: ""
    Local : Field : DSP MailCC : Setalways: Yes
    Local : Field : Medium Prompt : Width : @@Longwidth



    Thanking you,

    Regards
    Vikram
     



  2. Hi Vikram,

    In Tally you can send multiple CCs.

    But It Will Accept the email ids with ; Seperated with after each ids.

    Note you can set Any No of CCs.

    Please find the code where I am Storing Multiple CCs Of Ids in Ledger Master and Setting into the CC s Field.


    Code:
    ;; Sri Ganeshji : Sri Balaji : Sri Pitreshwarji : Sri Durgaji : Sri Venkateshwara
     
    ;;______________________________________________________
    ;;________________ Multi CC Emails _____________________
     
     
    [#Part: LED Contact]
       
        Add : Lines : At End : LED EMail CCs
       
        [Line: LED EMail CCs]
       
            Fields      : Medium Prompt, LED Enable EMail CCs
            Local      : Field : Medium Prompt : Set as : $$LocaleString:"Multi E-Mail CCs"
     
     
            [Field : LED Enable EMail CCs]
                Use        : Logical Field
                Table        : YesNoTable
                Show Table    : Always
                Storage        : LED Enable EMail CCs
                Sub Form    : LED EMail CC        : $LEDEnableEMailCCs
               
     
    [Report: LED EMail CC]
     
        Title    : $$LocaleString:"Multiple Email CC"
     
    [Form: LED EMail CC]
     
        Part        : FormSubTitle, LED EMail CC
        FullWidth  : No
        Height        : 90% Screen
        Background  : @@SV_CHEQUE
        SpaceRight  : 0.5
        SpaceLeft  : 1.5
        Local      : Field : Form SubTitle : Info  : $$LocaleString:"Multiple Email CC"
        Option      : Small Size Form
     
    [Part: LED EMail CC]
     
        Lines      : LED EMail CC
        Repeat      : LED EMail CC  : LED EMail CC
        Break on    : $$IsEmpty:$LEDEMailCC
        Scroll        : Vertical
        Height      : 88% Screen
     
        [Line: LED EMail CC]
     
            Fields      : Multi SNo, LED EMail CC
            Local      : Field : Default : Delete : Border
     
            [Field: LED EMail CC]
     
                Use        : Name Field
                Case          : Normal
                Style      : Small Bold
                Storage    : LED EMail CC
                ASCIIOnly    : Yes
                KBLanguage  : @@EnglishLanguageID
                Unique      : Yes
                Width      : @@NameWidth+5
               
     
    [System : UDF]
       
        LED Enable EMail CCs    : Logical    : 50505
        LED EMail CC            : String    : 50506
       
     
    ;;----------------------------------------
    ;;-----To Get  EMail CC From LEDGER ----------
     
    [Collection : TSPL Email CCs]
        Type        : LED EMail CC : Ledger
        Child Of    : $PartyLedgerName            ;;#EIConsignee
        Fetch        : LED EMail CC
       
     
    ;; Function to replace "," with ";"
       
    [Function: InputString]   
        Parameter : InputString    : String   
        Variable  : Input Temp        : String
        Variable  : Input Count    : Number
        Variable  : OutputString    : String
           
        10 : Set    :    Input Temp    : ""
        20 : FOR TOKEN : Input TokenVar : ##InputString : ","
        30 : Set : Input Temp : ##InputTemp + $$String:##InputTokenVar + ";"
        40 : END FOR
        50 : SET : Input Count : $$StringLength:##InputTemp
        60 : SET : OutputString : $$StringPart:##InputTemp:0:(##InputCount-1)
        70 : RETURN : ##OutputString
     
     
     
    [System : Formula]
        DSDMultiEmailIds : $$FullList:TSPLEmailCCs:$LEDEMailCC
     
     
     
    [#Form: SV MailConfig]
        Option : DSD SV MailConfig : $$IsSales:##SVVoucherType
       
    [!Form : DSD SV MailConfig]
       
        Local : Field : DSP MailCC            : Set As    : ##SVMailCC
        Local : Field : DSP MailCC          : Modifies    : SVMailCC            : Yes
        Local : Field : DSP MailCC          : Set As    : $$InputString:@@DSDMultiEmailIds
       
        Local : Field : DSP MailCC            : Type            : String : Forced
        Local : Field : DSP MailCC            : Set Always    : Yes
        Local : Field : DSP MailCC            : Delete        : Table
     
    ;; End-Of-File
     
    Vikram likes this.


  3. Vikram

    Vikram Member


     


  4. Vikram

    Vikram Member


    Thank you for the Reply and solution .

    I had another query of sending BCC(Background CC) in Tally, how can we acheive it?
     



  5. Hi Vikram,

    Sorry,There is no BCC in Tally.
     


  6. Vikram

    Vikram Member


    Thank you for your valuable reply.
     



  7. Dear Sir,

    i have customized invoice in my format with self learn tdl program and taken your reference coding. My invoice format has almost finalize but i have taken company name and address on top center but i need address line in single line. i have try to understand fulllist code but i could not understand that and every when i remove repeat line from the part then it is taking party address instead of my own company address.

    I request you to pls send me fulllist code with single line my company address.

    Thanks & regards,
     


  8. Vikram

    Vikram Member


    [Collection : CurrentCompanyAdd]

    Type : Address : Company
    Childof: $$Currentcompany
    Fetch : Address

    [System : Formula]

    Currentcompanyadd : $$Fulllist:CurrentCompanyAdd:$Address

    ;;use @@Currentcompanyadd for your address


     



  9. Dear Mr. Vikram

    Thanks for the help but my problem has solved but now only 2 problem is there.
    1. i could not get pincode in my company address.
    2. i could not get party contact number in party address.

    I have already attached my full code (if possible modify and solve my query....)
    Thanks
     


  10. mpal2311

    mpal2311 Active Member


    For Company PinCode Use : $PINCode
    party contact number Use : $LedgerPhone , $LedgerMobile
     



  11. Thanks for the help , i have implemented your both the code in my customization but only Party contact numer problem has solved but still Company pincode is not comming.

    Pls help me.
     


  12. mpal2311

    mpal2311 Active Member


    Use $PinCode:Company:##SVCurrentCompany
     



  13. Thanks ........................
    your help has solved my problem but very little problem for the Company logo.

    Pls send me code for the company logo also.

    Thanks in Advance
     


  14. Rajsrisrimal

    Rajsrisrimal Member



    Sir,
    Please check finding error
    error T0044:Duplicate descripiton name line:LED EMail CC in user TDL
     


  15. Mohan.S

    Mohan.S Member


    how to send automatic mail for vouchers. same print after save.
     


  16. kdchavan

    kdchavan New Member


    error T0044:Duplicate descripiton name line:LED EMail CC in user TDL

    Please resolve and revert. Thanks.
     


  17. kdchavan

    kdchavan New Member


    error T0044:Duplicate descripiton name line:LED EMail CC in user TDL

    Please resolve and revert. Thanks.
     


Share This Page