Search found 6 matches

by sigipa
Wed Oct 19, 2016 12:24 pm
Forum: newLISP in the real world
Topic: string function returns literal list
Replies: 3
Views: 6259

Re: string function returns literal list

Hi,

Works perfectly. Thanks.

-S
by sigipa
Wed Oct 19, 2016 1:43 am
Forum: newLISP in the real world
Topic: string function returns literal list
Replies: 3
Views: 6259

string function returns literal list

Hello All, When the string function is applied to a list, it returns a literal list. See code below. (string '("a" "b" "c")) This returns: ("a" "b" "c") I expected it to return: "abc" Is this working as intended? If so, is there another function that will return a string without the parens and quote...
by sigipa
Tue Oct 18, 2016 10:07 pm
Forum: newLISP in the real world
Topic: Email with html in body
Replies: 5
Views: 4507

Re: Email with html in body

Hi,

I was just showing the changes I made to the smtp.lsp file. I am calling the send-mail function. I'll keep playing with it. I'm probably just missing something.

Thanks,
-S
by sigipa
Tue Oct 18, 2016 7:12 pm
Forum: newLISP in the real world
Topic: Email with html in body
Replies: 5
Views: 4507

Re: Email with html in body

Hi, These snippets are from the smtp.lsp file. If I run this, it just does nothing. No errors. (define (send-mail mail-from mail-to mail-subject (mail-content-type "") mail-body SMTP-server (use r-name "") (password "")) (define (mail-send-header) (net-send-get-result (append "TO: " mail-to)) (net-s...
by sigipa
Tue Oct 18, 2016 3:10 pm
Forum: newLISP in the real world
Topic: Email with html in body
Replies: 5
Views: 4507

Email with html in body

Hello All, I am new to NewLisp, so please excuse a stupid question. I need to send html in the body of an email. I've been trying to modify the "send-mail" function in smtpx.lsp to accept an additional mail-headers argument, but I'm not having much luck. I thought I could add the argument and then a...
by sigipa
Fri Jun 24, 2016 5:55 am
Forum: newLISP in the real world
Topic: Convert list to string
Replies: 1
Views: 3294

Convert list to string

Hello All,

What is the best way to convert a list to a string in newLISP? In CL I would just use format, but it doesn't appear to work in in this case. I just want to send the output from an exec function in an email body.

Thanks,
-S