Announcement

Collapse
No announcement yet.

add a message to send email attachment

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    add a message to send email attachment

    I'm using the Send_Email_Attachment function on a site. I need to add a message to the email. There isn't a parameter for a message. Is there a way?

    UPDATE: looking at the LSK 9.13, this function appears to not have a message parameter that could be passed and is hardcoded in the function.

    Scott
    Last edited by ids; 10-06-20, 11:45 AM.
    Need to offer Shipping Insurance?
    Interactive Design Solutions https://www.myids.net
    MivaMerchant Business Partner | Certified MivaMerchant Web Developer
    Competitive Rates, Custom Modules and Integrations, Store Integration
    AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
    My T-shirt Collection is mostly MivaCon T-shirts!!

    #2
    Yes, apparently Send_Email_Attachment is hard-coded to provide a one-sentence message body. In the version 10 LSK, the code includes this line:
    Code:
    <MvASSIGN NAME = "l.body_message" VALUE = "{ 'By your request, Miva Merchant has emailed your exported file \'' $ l.file_name $ '\' from your \'' $ g.Store:name $ '\' store.' }">
    It should be easy enough to create your own version of the function, delete that line, and add "body_message" as a new parameter in the MvFUNCTION.
    Kent Multer
    Magic Metal Productions
    http://TheMagicM.com
    * Web developer/designer
    * E-commerce and Miva
    * Author, The Official Miva Web Scripting Book -- available on-line:
    http://www.amazon.com/exec/obidos/IS...icmetalproducA

    Comment


      #3
      Yes, that's the hardcoded section I was referring to. A module isn't part of the project, which I would need to create a component for...not part of the project.

      Scott
      Need to offer Shipping Insurance?
      Interactive Design Solutions https://www.myids.net
      MivaMerchant Business Partner | Certified MivaMerchant Web Developer
      Competitive Rates, Custom Modules and Integrations, Store Integration
      AutoBaskets|Advanced Waitlist Integration|Ask about Shipping Insurance Integration
      My T-shirt Collection is mostly MivaCon T-shirts!!

      Comment


        #4
        ids just threaten to use PHP and a function will magically appear ;)
        Colin Puttick
        Miva Web Developer @ Glendale Designs

        Comment

        Working...
        X