+---------- On May 9, Jason Saunders said:
> If the " " are there for the gaps between to, from and subject, why isn't
> there one between "ns_sendmail" and to?

Because the example code is buggy.

> The other thing that puzzles me is that the documentation for
> NS_DStringVarAppend says the list must end with a NULL, and this is missing
> from the code example.

The solution to the puzzle is that the example code is buggy.

> To make it completely obvious even to a buffoon like me, can someone please
> give an example of how to send an email to: [EMAIL PROTECTED], from:
> [EMAIL PROTECTED], subject: Hiya, body: How u doin? Email me back!

    Ns_DString result;
    Ns_DStringInit(&result);
    Ns_TclEval(&result, Ns_ConnServer(conn),
        "ns_sendmail [EMAIL PROTECTED] [EMAIL PROTECTED] "
        "Hiya {How u doin? Email me back!}");

Reply via email to