[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
newlispfanclub.alh.net • View topic - Email with html in body

Email with html in body

Q&A's, tips, howto's

Email with html in body

Postby sigipa » Tue Oct 18, 2016 3:10 pm

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 add a line to the send-headers function, but that's not working. Can anyone please offer some advice on the best way to do this?

thanks,
-S
sigipa
 
Posts: 6
Joined: Fri Jan 30, 2015 4:06 am

Re: Email with html in body

Postby TedWalther » Tue Oct 18, 2016 6:19 pm

Show us what you tried, please.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.
TedWalther
 
Posts: 605
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC

Re: Email with html in body

Postby sigipa » Tue Oct 18, 2016 7:12 pm

sigipa
 
Posts: 6
Joined: Fri Jan 30, 2015 4:06 am

Re: Email with html in body

Postby TedWalther » Tue Oct 18, 2016 9:33 pm

It shouldn't do anything, all you are doing is defining a couple functions.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.
TedWalther
 
Posts: 605
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC

Re: Email with html in body

Postby sigipa » Tue Oct 18, 2016 10:07 pm

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
sigipa
 
Posts: 6
Joined: Fri Jan 30, 2015 4:06 am

Re: Email with html in body

Postby TedWalther » Wed Oct 19, 2016 12:24 am

First, does it work without your modifications.

Second, show how you are calling the function with your modifications. And show how this differs from the call to the unmodified function.
Cavemen in bearskins invaded the ivory towers of Artificial Intelligence. Nine months later, they left with a baby named newLISP. The women of the ivory towers wept and wailed. "Abomination!" they cried.
TedWalther
 
Posts: 605
Joined: Mon Feb 05, 2007 1:04 am
Location: Abbotsford, BC


Return to newLISP in the real world

Who is online

Users browsing this forum: No registered users and 2 guests

cron