Announcement

Collapse
No announcement yet.

SMTP

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

    SMTP



    Greetings,

    is there somebody who can tell me if it is possible to use expressions and/or
    variables in the MvSMTP tag?

    Up to now I used macros or an appropriate text string because I never could get
    expressions to work. So, please, is it simply not possible or am I doing
    something wrong?

    Also, if I use macros I can't compile the script, right?

    Regards,
    Frank


    #2
    SMTP



    Right, you cannot compile using macros. From the docs macros were =
    dropped
    when Miva Script went compiled.=20

    I haven=92t tried it, but from everything I have tried you can always =
    use {}
    inside of "" in any tag to use expressions. For example you should be =
    able
    to use:

    <MvSMTP TO=3D"{ l.to }" MAILHOST=3D"{ l.host }" FROM=3D"{ l.from }">

    Or

    <MvASSIGN NAME=3D"{ 'g.anything' $ l.counter }" VALUE=3D"{ l.somevalue =
    }">


    Jerry Pe=F1a
    President, P.R.Custom.com
    Custom Technology-Based Business Solutions
    Phone: (310) 531-9235 Fax: (310) 388-1083


    -----Original Message-----
    From: [email protected] [mailto:[email protected]] On =
    Behalf
    Of Frank Kammerdiener
    Sent: Sunday, April 10, 2005 4:24 PM
    To: [email protected]
    Subject: [meu] SMTP

    Greetings,

    is there somebody who can tell me if it is possible to use expressions
    and/or
    variables in the MvSMTP tag?

    Up to now I used macros or an appropriate text string because I never =
    could
    get
    expressions to work. So, please, is it simply not possible or am I doing
    something wrong?

    Also, if I use macros I can't compile the script, right?

    Regards,
    Frank

    Comment


      #3
      SMTP



      Sure, you mean like:

      <MvSMTP
      TO="{g.ToEmail}"
      SUBJECT="{l.message }"
      CC="{ g.cc_list }"
      MAILHOST="localhost"
      FROM="{g.message}">

      -Bruce


      > -----Original Message-----
      > From: [email protected]
      > [mailto:[email protected]] On Behalf Of Frank Kammerdiener
      > Sent: Sunday, April 10, 2005 4:24 PM
      > To: [email protected]
      > Subject: [meu] SMTP
      >
      > Greetings,
      >
      > is there somebody who can tell me if it is possible to use
      > expressions and/or variables in the MvSMTP tag?
      >
      > Up to now I used macros or an appropriate text string because
      > I never could get expressions to work. So, please, is it
      > simply not possible or am I doing something wrong?
      >
      > Also, if I use macros I can't compile the script, right?
      >
      > Regards,
      > Frank
      >

      Comment


        #4
        SMTP



        All right, thanks all, it's fine. I'm feeling quite silly, I messed up the
        MvASSIGN for the recipient, no wonder it did not work.

        Now, if somebody could tell me what structures are good for (maybe with
        a simple
        example)?

        Regards,
        Frank


        Quoting "Bruce Golub - Phosphormedia.com" <[email protected]>:

        > Sure, you mean like:
        >
        > <MvSMTP
        > TO="{g.ToEmail}"
        > SUBJECT="{l.message }"
        > CC="{ g.cc_list }"
        > MAILHOST="localhost"
        > FROM="{g.message}">
        >
        > -Bruce
        >
        >
        >> -----Original Message-----
        >> From: [email protected]
        >> [mailto:[email protected]] On Behalf Of Frank Kammerdiener
        >> Sent: Sunday, April 10, 2005 4:24 PM
        >> To: [email protected]
        >> Subject: [meu] SMTP
        >>
        >> Greetings,
        >>
        >> is there somebody who can tell me if it is possible to use
        >> expressions and/or variables in the MvSMTP tag?
        >>
        >> Up to now I used macros or an appropriate text string because
        >> I never could get expressions to work. So, please, is it
        >> simply not possible or am I doing something wrong?
        >>
        >> Also, if I use macros I can't compile the script, right?
        >>
        >> Regards,
        >> Frank
        >>

        Comment


          #5
          Structures (was SMTP)



          > All right, thanks all, it's fine. I'm feeling quite silly, I messed up the
          > MvASSIGN for the recipient, no wonder it did not work.
          >
          > Now, if somebody could tell me what structures are good for (maybe with
          > a simple
          > example)?
          >
          They allow a primitive form of object-orientation.

          For example, in one application I have an array of domain names and
          several more arrays of properties related to the domain names. If I make
          these latter ones structures, when I sort the domaisn array, I don't have
          to simultaneously reference all the others.

          You do end up using an awful lot of miva_variable_value() functions to
          access the data in the structures.


          Comment


            #6
            SMTP



            Biiiiiiiiiiiiiiiiiiiiiiiillll ... where R U..... someone is asking for =
            STRUCTURES !!!!

            Ok.. You should search through the miva users archives to see.. there =
            are some interesting discussions on the structures.. But I'll paste U a =
            few here..
            I didn't realize the first time that structures .. structure my coding =
            :> and it did.. It is quite useful when you have lot of local vars to =
            pass through the functions, it is simpler to see the vars you are =
            working with, etc.. But I let you take a look on the posts.. it is =
            better explained..

            Some form structures topic: =
            http://listmgr.miva.com/meu/index.mv...3Did9090098=20
            This one is quite relevant about passing vars through the functions: =
            http://listmgr.miva.com/meu/index.mv...3Did909009899=
            99

            .. and so on..=20

            Bill (and friends) will make us a beautiful tutorial on structures (on =
            mivascript.org) when I'll finish the system :(((((

            Best regards,
            Claudiu Bischoff


            -----Original Message-----
            From: [email protected] [mailto:[email protected]]On
            Behalf Of Frank Kammerdiener
            Sent: lundi 11 avril 2005 05:08
            To: [email protected]
            Subject: RE: [meu] SMTP


            All right, thanks all, it's fine. I'm feeling quite silly, I messed up =
            the
            MvASSIGN for the recipient, no wonder it did not work.

            Now, if somebody could tell me what structures are good for (maybe with=20
            a simple
            example)?

            Regards,
            Frank


            Quoting "Bruce Golub - Phosphormedia.com" <[email protected]>:

            > Sure, you mean like:
            >
            > <MvSMTP
            > TO=3D"{g.ToEmail}"
            > SUBJECT=3D"{l.message }"
            > CC=3D"{ g.cc_list }"
            > MAILHOST=3D"localhost"
            > FROM=3D"{g.message}">
            >
            > -Bruce
            >
            >
            >> -----Original Message-----
            >> From: [email protected]
            >> [mailto:[email protected]] On Behalf Of Frank Kammerdiener
            >> Sent: Sunday, April 10, 2005 4:24 PM
            >> To: [email protected]
            >> Subject: [meu] SMTP
            >>
            >> Greetings,
            >>
            >> is there somebody who can tell me if it is possible to use
            >> expressions and/or variables in the MvSMTP tag?
            >>
            >> Up to now I used macros or an appropriate text string because
            >> I never could get expressions to work. So, please, is it
            >> simply not possible or am I doing something wrong?
            >>
            >> Also, if I use macros I can't compile the script, right?
            >>
            >> Regards,
            >> Frank
            >>

            Comment


              #7
              SMTP



              Sounds like a job for a gorilla...

              -Bruce

              > -----Original Message-----
              > From: [email protected]
              > [mailto:[email protected]] On Behalf Of Frank Kammerdiener
              > Sent: Sunday, April 10, 2005 8:08 PM
              > To: [email protected]
              > Subject: RE: [meu] SMTP
              >
              > All right, thanks all, it's fine. I'm feeling quite silly, I
              > messed up the MvASSIGN for the recipient, no wonder it did not work.
              >
              > Now, if somebody could tell me what structures are good for
              > (maybe with a simple example)?
              >
              > Regards,
              > Frank
              >
              >
              > Quoting "Bruce Golub - Phosphormedia.com" <[email protected]>:
              >
              > > Sure, you mean like:
              > >
              > > <MvSMTP
              > > TO="{g.ToEmail}"
              > > SUBJECT="{l.message }"
              > > CC="{ g.cc_list }"
              > > MAILHOST="localhost"
              > > FROM="{g.message}">
              > >
              > > -Bruce
              > >
              > >
              > >> -----Original Message-----
              > >> From: [email protected]
              > >> [mailto:[email protected]] On Behalf Of Frank Kammerdiener
              > >> Sent: Sunday, April 10, 2005 4:24 PM
              > >> To: [email protected]
              > >> Subject: [meu] SMTP
              > >>
              > >> Greetings,
              > >>
              > >> is there somebody who can tell me if it is possible to use
              > >> expressions and/or variables in the MvSMTP tag?
              > >>
              > >> Up to now I used macros or an appropriate text string
              > because I never
              > >> could get expressions to work. So, please, is it simply
              > not possible
              > >> or am I doing something wrong?
              > >>
              > >> Also, if I use macros I can't compile the script, right?
              > >>
              > >> Regards,
              > >> Frank
              > >>

              Comment


                #8
                SMTP



                Frank,

                I do this...

                <MvSMTP
                TO="{ l.toemail }"
                FROM="[email protected]"
                MAILHOST="localhost"
                SUBJECT="{ 'Set ' $ BATCH $ ', ' $ REF_NO $ ' comments on the
                Field management page' }">


                a lot... rolling through a dbf of email names. Let me know if I can help.
                You can't use macros, but there are usually good workarounds.

                Thanks
                rg








                At 06:23 PM 4/10/2005 -0500, you wrote:
                >Greetings,
                >
                >is there somebody who can tell me if it is possible to use expressions and/or
                >variables in the MvSMTP tag?
                >
                >Up to now I used macros or an appropriate text string because I never
                >could get
                >expressions to work. So, please, is it simply not possible or am I doing
                >something wrong?
                >
                >Also, if I use macros I can't compile the script, right?
                >
                >Regards,
                >Frank
                >

                Comment

                Working...
                X