Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

Email object and send

 [1/6] from: chalz:earthlink at: 26-Feb-2003 0:35


*scratches at his brain* Okay, I'm starting to go looney here. I've got my REBOL For Dummies out and I'm looking at the REBOL/Core Users Guide online .. and I'm still not getting it right. I want to do something like this: announce: make system/standard/email [ From: {"Me" <[myself--myaddress--com]>} To: [[who--where]] Reply-To: [myself--myaddress--com] Subject: "Subject line" ] send/header announce/to "message" announce Problem is, my mail server keeps giving me errors like this: ** User Error: Server error: tcp 501 <"Me" [myself--myaddress--com]>: "@" or "." expected after ""Me"" ** Near: insert port reduce data Other formats I've tried include: ["Me" [myself--myaddress--com]] ["Me" [myself--myaddress--com]] [{"Me" [myself--myaddress--com]}] etcetcetc Various combinations, and I keep getting @ or . expected. Examining the source for email messages I've sent and received using a regular email client show that To and From can be like From: Carl Sassenrath <[carl--s--rebol--com]> But I can't get it to work. "Me <[myself--myaddress--com]>" or ["Me <[myself--myaddress--com]>"] ... When I try this: From: {"Me <[myself--myaddress--com]>"} With or without the <>, I get: ** User Error: Server error: tcp 501 <"Me [myself--myaddress--com]">: sender address must contain a domain ** Near: insert port reduce data *sigh* Help :( I know, I could take out the "Me" part, but for what I'm working on, having a name in there would be decidedly useful. Appreciate the assistance. Oh, and I tried it without the optional name, and no, my mail server did not put the name in. --Charles

 [2/6] from: ingo:h-o-h at: 26-Feb-2003 8:15


Hi Charles, Charles <[chalz--earthlink--net]> schrieb am 26.02.2003, 06:35:45: <...>
> I want to do something like this: > announce: make system/standard/email [
<<quoted lines omitted: 4>>
> ] > send/header announce/to "message" announce
Normally Rebol does not support sending of real names, but there is a patch available at: http://www.h-o-h.org/patches.r After this, you can do something like: announce: make system/standard/email [ From: ["Me" [me--here--com]] To: ["Who" [who--where]] Reply-To: [myself--myaddress--com] Subject: "Subject line" ] send/header announce/to "message" announce The patch is a little bit older, and I have not yet incorporated changes in newer versions, but it should work with no problems. Kind regards, Ingo

 [3/6] from: al::bri::xtra::co::nz at: 26-Feb-2003 20:30


Charles wrote:
> Problem is, my mail server keeps giving me errors like this: > ** User Error: Server error: tcp 501 <"Me" [myself--myaddress--com]>: "@" or
.
> expected after ""Me"" > ** Near: insert port reduce data
Try looking at the source of 'send. Here's a relevant line: header-obj/from: rejoin [system/user/name " <" from ">"] I'd suggest using something like: From: rejoin ["Charles" " <" [chalz--earthling--net] ">"] Andrew Martin ICQ: 26227169 http://valley.150m.com/

 [4/6] from: carl:cybercraft at: 26-Feb-2003 21:20


On 26-Feb-03, Charles wrote:
> *scratches at his brain* Okay, I'm starting to go looney here. > I've got my "REBOL For Dummies" out and I'm looking at the
<<quoted lines omitted: 11>>
> or "." expected after ""Me"" > ** Near: insert port reduce data
Hi Charles, I tried your way above and it worked. But the following I found also works... From: "Me <[left--paradise--net--nz]>" ie - no speechmarks around the "Me". Perhaps worth a try... Carl.
> Other formats I've tried include: > ["Me" [myself--myaddress--com]]
<<quoted lines omitted: 17>>
> server did not put the name in. > --Charles
-- Carl Read

 [5/6] from: g:santilli:tiscalinet:it at: 26-Feb-2003 10:12


Hi Charles, On Wednesday, February 26, 2003, 6:35:45 AM, you wrote: C> Problem is, my mail server keeps giving me errors like this: C> ** User Error: Server error: tcp 501 <"Me" [myself--myaddress--com]>: "@" or "." C> expected after ""Me"" C> ** Near: insert port reduce data I think it's a bug in SEND. It does: do-send smtp-port ["MAIL FROM: <" from ">"] with FROM taken from your supplied header, so that if it contains the name it does not work. You could work around this by not setting the From: field in the header and by setting: system/user/name: "Me" system/user/email: [myself--myaddress--com] before using SEND. Regards, Gabriele. -- Gabriele Santilli <[g--santilli--tiscalinet--it]> -- REBOL Programmer Amigan -- AGI L'Aquila -- REB: http://web.tiscali.it/rebol/index.r

 [6/6] from: chalz:earthlink at: 26-Feb-2003 14:36


Carl & Andrew: Thanks for the assistance. But, no go. I'm running REBOL/Core 2.5.3.3.1 for the job. Therein may lie my problem; who knows. I'll keep these emails on-hand, though, for when I download the betas. And thanks to Ingo, though I haven't checked out the patch yet. I think I'm just going to do as Gabriele said and use system/user/name and /email. Thing is, it's not my normal email address I'll be sending as From. However, it is an account owned by me on the same server. Sort of a family announcement list I'm working up. Anyways, thanks again all. Appreciated. --Charles

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted