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

Newbie Email question!

 [1/5] from: kimm2:mcmaster:ca at: 5-Jul-2002 10:11


Hi, I used to have this working... But now for some reason it doesn't seem to work. The problem I'm having is that when I try and send an email, the subject won't be sent, only the message is sent. My code is: message: "This is a message" subj: "This is the subject" header: make system/standard/email [subject: subj] until [either error? try [send/header to-block mail_from message header][print "Error sending email" false wait 0:00:02][true]] I'm baffled... -Matt

 [2/5] from: kimm2:mcmaster:ca at: 5-Jul-2002 10:25


I tested the exact same code in a new REBOL command window, and it seemed to work fine. It's only in my program (which has grown quite convoluted) where it won't work. But it's such a simple line of code, I have no idea why it wouldn't work. Your suggestions would be greatly appreciated. -Matt

 [3/5] from: kimm2:mcmaster:ca at: 5-Jul-2002 10:46


Just to add to my list of problems.. I think this might be related. My program loops to check my inbox... After successfully cycling through it once, the second time it tries to open it, I get this message: ** Throw Error: ** User Error: header not correctly parsed ** Near: throw make error! info

 [4/5] from: kimm2::mcmaster::ca at: 5-Jul-2002 12:57


Oops, found the problem. I used "first" as a variable... A big no no...

 [5/5] from: anton:lexicon at: 6-Jul-2002 3:40


Have you tried using the /subject refinement of send ? Anton.