On 3/3/21 6:00 PM, Bob Sneidar via use-livecode wrote:
Still sketchy on whether or not open file for binary write and put url binfile
give the same results.
Yes, they do the same thing.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software |
I once inherited a stack where the original developer did just that.
--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On March 3, 2021 5:46:06 PM Bob Sneidar via use-livecode
wrote:
That answers my question. Actually, I have no idea why
Hi Charles,
I had almost everything right.
I was missing a cr between tCc and tBcc. Oops.
Everything is working great now!
Thanks!!!
Rick
> On Mar 3, 2021, at 6:48 PM, Charles Warwick via use-livecode
> wrote:
>
> Hi Rick,
>
> What code did you try to add the Bcc e-mail recipients?
>
>
Thanks Charles,
-
Matthias Rebbe
Life Is Too Short For Boring Code
this might is a relic from times before tsNET. When i started with tsNet i
modified existing code and maybe i kept this "bad" behaviour. ;)
I used this only for inhouse status and alert emails for up to 5 recipients and
Still sketchy on whether or not open file for binary write and put url binfile
give the same results.
Bob S
On Mar 3, 2021, at 3:56 PM, Brian Milby via use-livecode
mailto:use-livecode@lists.runrev.com>> wrote:
Correct. So the current situation requires you to use binfile for Mac/Linux
and
Correct. So the current situation requires you to use binfile for Mac/Linux
and file for Windows/Linux to get appropriate line endings. You can’t do it
just one way, you have to check your OS. Notice that Linux works both ways.
(You also should encode/decode if using binfile)
In
Hi Rick,
What code did you try to add the Bcc e-mail recipients?
The tRecipient variable to the tsNetSmtpSync command needs to be one e-mail
address per line of all the recipients for the e-mail (To, Cc and Bcc) and that
is what is used to determine who the e-mail is sent to.
The rest of
Hi Matthias,
I would not recommend sending e-mail this way. It will create a new SMTP
connection and send the e-mail message separately for every single recipient.
SMTP connections (and tsNetSMTP* commands) are designed to handle multiple
recipients for one e-mail within a single SMTP
That answers my question. Actually, I have no idea why I don’t ALWAYS use open
file for binary.
Bob S
On Mar 3, 2021, at 2:36 PM, J. Landman Gay via use-livecode
mailto:use-livecode@lists.runrev.com>> wrote:
On 3/3/21 1:51 PM, Brian Milby via use-livecode wrote:
If you want to be the most
Thanks Matthias. Actually I use open file and write to file, but the results
may be the same. Are you saying if use open binary file it will not translate
the line endings?
Bob S
On Mar 3, 2021, at 1:51 PM, matthias rebbe via use-livecode
mailto:use-livecode@lists.runrev.com>> wrote:
The
On 3/3/21 1:51 PM, Brian Milby via use-livecode wrote:
If you want to be the most accurate (clear for others reading code) you would
use the LF constant instead of CR since that is how it actually evaluates. The
only way to generate an actual CR within code is to use CRLF (which gets both)
Rick,
let's say
pTO contains one or more email recipients, each in one line
pCC contains one or mor cc recipients, each in one line
pBCC contains one or more bcc recipients, each in one line
tData contains the mime encoded message which includes all To and all CC
recipients
then you would do
Ok, everything is fine on the format front now.
I noticed the code takes about a minute to execute all the way through.
(Must be a lot of background process have to run?)
I tried Charles Warwick’s suggestion for Bcc, and it didn’t work. :-(
If any of you want to take a crack at it, please let me
Bob Sneidar wrote:
> OK Now I am interested. I have a little utility that converts a Konica
> Minolta address book to a Toshiba one. If I run the utility on a Mac,
> the address book will not import into a Toshiba copier, but if I first
> OPEN the csv file in WINDOWS, then save and close it,
The problem is, put URL file: uses the line endings of the os where the it is
executed, even if you have a container/variable with some text and line endings
CRLF. As soon as you use put into URL "file:..." the line endings are
converted to the default ones of the os where the code is
OK Now I am interested. I have a little utility that converts a Konica Minolta
address book to a Toshiba one. If I run the utility on a Mac, the address book
will not import into a Toshiba copier, but if I first OPEN the csv file in
WINDOWS, then save and close it, suddenly it WILL import. I
Brian Milby wrote:
> If you export as text, then you get what is expected on Win/Linux and
> get CR on Mac (which is wrong in my opinion).
Wrong, but at least consistently so. ;)
As a dialect of HyperTalk, LC maintains the "CR = ASCII 13" rule because
way back in '87 when HC was born that was
If you want to be the most accurate (clear for others reading code) you would
use the LF constant instead of CR since that is how it actually evaluates. The
only way to generate an actual CR within code is to use CRLF (which gets both)
or use numtobyte(13).
If you export as text, then you get
You have to do this:
replace cr with crlf in tBody
Personal Btw: I find that using ‘return’ results in ugly code as a personal
preference, so I avoid that and use cr. it’s just that the script renderer
shows ‘return’ in yellow for it’s command equivalent because they still
haven’t coded the
Tried this script here on macOS
put "this is line 1" &"this is line 2" into tBody
put "xx" into tFrom
put "xxx...@me.com" into tTo
put "Email test" into tSubject
put "" into tSettings["username"]
put "" into tSettings["password"]
put TRUE into tSettings["NO_REUSE"]
put
Services
rdim...@evergreeninfo.net
-Original Message-
From: use-livecode [mailto:use-livecode-boun...@lists.runrev.com] On Behalf
Of Rick Harrison via use-livecode
Sent: Wednesday, March 03, 2021 12:10 PM
To: How to use LiveCode
Cc: Rick Harrison
Subject: tsNet mail message not formatting
I want to send a message that has multiple lines.
I have tried inserting cr and return and nothing
works so far. The message ends up on a same line.
Ideas?
Thanks,
Rick
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url
22 matches
Mail list logo