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

[REBOL] Re: Sending email via a different SMTP server.

From: gscottjones::mchsi::com at: 29-Jul-2002 13:17

Phil wrote:
> I want to send email via a different SMTP server than the default one set
in
> user.r. > > But I want to leave everything unchanged after the email, so anything I
replace
> must be put back. > > Is there an offical way of doing this?
Hi, Phil, Several ways to do this. The simpliest maybe to capture the original smtp server name, reset it to a temporary new one, send the email, then reset the server name back. Something like: old-host: system/schemes/default/host system/schemes/default/host: "new.smtp.mynetwork.dom" send [myname--mydomain--dom] "Hello" system/schemes/default/host: old-host The alternative approach is to hack a new copy of send function that will allow a refinement that allows an alternative smtp host name to be passed to the function. If you prefer this later approach and my description is less than clear, I would be happy to present a prototype. (I am short of time right now.) Hope this helps. --Scott Jones