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

sending e-mail as another user

 [1/7] from: jblake::arsenaldigital::com at: 9-May-2007 16:55


Ops, Forgot to change the subject to start a new thread.

 [2/7] from: anton::wilddsl::net::au at: 10-May-2007 12:04


Hi John, Just a quick suggestion; did you try tracing the network activity: trace/net on Regards, Anton.

 [3/7] from: btiffin:rogers at: 10-May-2007 2:06


Hi John %blast.r is for sending %letter.txt to a csv list of addresses and names in %names.txt. The edits to %blast.r just modifies some of the header fields, not the account. If you've got it all set up %blast.r uses the SEND command from the account REBOL is running from. SET-NET accepts [email smtp-host pop-server proxy-server proxy-port proxy-type esmtp-user esmtp-pass] It's the first, second and last two fields you'll want to tweak for the SEND to send through a different account. You can set esmtp-user to 'ASK to get prompted for username and password. (Assuming a 2.7.5 REBOL version), but it sounds like you may want to automate this, in which case you either hardcode the password in clear text or to obfuscate it a little bit, try set-net compose [... esmtp-user (to string! decloak copy #{datayoucutandpastefromencloak} "cloakkey")] At least now you only expose the password to people that know REBOL. %blast.r is really meant for sending form letters, and can be abused for SPAM. Along with following Anton's trace/net advice look in the same default directory for files of the form %blast-10-May-2007-0.txt to see if %blast.r is working. Also check http://rebol.com/docs/core23/rebolcore-13.html#section-9 For more info on sending email. Cheers, Brian On Wednesday 09 May 2007 16:55, John Blake wrote:

 [4/7] from: jblake:arsenaldigital at: 9-May-2007 23:58


headers on an email are like pictures on a postcard. rebol[] set-net [ jblake-arsenaldigital.com mailhost.arsenaldigital.com mailhost.arsenaldigital.com none none none] body: { headers on an email are like pictures on a postcard. } header: make system/standard/email [ To: {"John Blake" <jblake-arsenaldigital.com>} From: {"John Blake" <jblake-arsenaldigital.com>} Subject: "[REBOL] sending e-mail as another user" ] send/header to-email rebolist-rebol.com body header

 [5/7] from: jblake:arsenaldigital at: 10-May-2007 9:16


Now this is funny!! heheh

 [6/7] from: jblake::arsenaldigital::com at: 10-May-2007 16:49


This is why it wasnt working. Although I was using; Send/header [to: to-addr] contents header And could print out the contents of [to: to-addr], it didn't send any email. It was logging in but not sending anything. I used this to test to verify connectivity and sending permissions. http://support.microsoft.com/kb/153119 So, once I knew the account could send, it had to be the script. I changed it to; Send/header to-addr contents header And it works. Now I just need it to parse pipe delimited args and I'll be ready to go. Thanks for the help. John

 [7/7] from: Tom::Conlin::gmail::com at: 10-May-2007 19:20


row: parse/all line "|" row/1 row/2 ... row/:n John Blake wrote: