• Email and baja...

    From Richard Brumpton to All on Wednesday, September 04, 2002 05:13:46
    Ok, whats wrong with the following...

    a variable called email is set to "sysop@carso.darktech.org"

    My script says

    SETSTR email
    UNGETSTR
    main_send_netmail

    I thought that this would put the contents of the variable email into the buffer, which in turn would automaticay address email to sysop@carso.darktech.org

    BUT, it doesn't it puts the next email into the buffer the the main_send_netmail command receives the word "email"

    Anyone know wha I am doing wrong?

    Merlin
  • From Digital Man to Richard Brumpton on Wednesday, September 04, 2002 14:49:40
    Re: Email and baja...
    By: Richard Brumpton to All on Wed Sep 04 2002 05:13 am

    Ok, whats wrong with the following...

    a variable called email is set to "sysop@carso.darktech.org"

    My script says

    SETSTR email
    UNGETSTR
    main_send_netmail

    I thought that this would put the contents of the variable email into the buffer, which in turn would automaticay address email to sysop@carso.darktech.org

    BUT, it doesn't it puts the next email into the buffer the the main_send_netmail command receives the word "email"

    Anyone know wha I am doing wrong?

    SETSTR expects a string constant (cstr) argument, not a variable name. Use this instead:

    COPY str email

    digital man