SMTP

Collapse
X
 
  • Time
  • Show
Clear All
new posts

  • Guest's Avatar
    Guest replied
    SMTP



    Frank,

    I do this...

    <MvSMTP
    TO="{ l.toemail }"
    FROM="ralphgauer@zianet.com"
    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
    >

    Leave a comment:


  • Guest's Avatar
    Guest replied
    SMTP



    Sounds like a job for a gorilla...

    -Bruce

    > -----Original Message-----
    > From: owner-miva-users@miva.com
    > [mailto:owner-miva-users@miva.com] On Behalf Of Frank Kammerdiener
    > Sent: Sunday, April 10, 2005 8:08 PM
    > To: miva-users@miva.com
    > 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" <bruce@phosphormedia.com>:
    >
    > > Sure, you mean like:
    > >
    > > <MvSMTP
    > > TO="{g.ToEmail}"
    > > SUBJECT="{l.message }"
    > > CC="{ g.cc_list }"
    > > MAILHOST="localhost"
    > > FROM="{g.message}">
    > >
    > > -Bruce
    > >
    > >
    > >> -----Original Message-----
    > >> From: owner-miva-users@miva.com
    > >> [mailto:owner-miva-users@miva.com] On Behalf Of Frank Kammerdiener
    > >> Sent: Sunday, April 10, 2005 4:24 PM
    > >> To: miva-users@miva.com
    > >> 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
    > >>

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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: =

    This one is quite relevant about passing vars through the functions: =

    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: owner-miva-users@miva.com [mailto:owner-miva-users@miva.com]On
    Behalf Of Frank Kammerdiener
    Sent: lundi 11 avril 2005 05:08
    To: miva-users@miva.com
    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" <bruce@phosphormedia.com>:

    > 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: owner-miva-users@miva.com
    >> [mailto:owner-miva-users@miva.com] On Behalf Of Frank Kammerdiener
    >> Sent: Sunday, April 10, 2005 4:24 PM
    >> To: miva-users@miva.com
    >> 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
    >>

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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.


    Leave a comment:


  • Guest's Avatar
    Guest replied
    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" <bruce@phosphormedia.com>:

    > Sure, you mean like:
    >
    > <MvSMTP
    > TO="{g.ToEmail}"
    > SUBJECT="{l.message }"
    > CC="{ g.cc_list }"
    > MAILHOST="localhost"
    > FROM="{g.message}">
    >
    > -Bruce
    >
    >
    >> -----Original Message-----
    >> From: owner-miva-users@miva.com
    >> [mailto:owner-miva-users@miva.com] On Behalf Of Frank Kammerdiener
    >> Sent: Sunday, April 10, 2005 4:24 PM
    >> To: miva-users@miva.com
    >> 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
    >>

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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: owner-miva-users@miva.com
    > [mailto:owner-miva-users@miva.com] On Behalf Of Frank Kammerdiener
    > Sent: Sunday, April 10, 2005 4:24 PM
    > To: miva-users@miva.com
    > 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
    >

    Leave a comment:


  • Guest's Avatar
    Guest replied
    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: owner-miva-users@miva.com [mailto:owner-miva-users@miva.com] On =
    Behalf
    Of Frank Kammerdiener
    Sent: Sunday, April 10, 2005 4:24 PM
    To: miva-users@miva.com
    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

    Leave a comment:


  • Guest's Avatar
    Guest started a topic SMTP

    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

Working...