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 [EMAIL PROTECTED] "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

-- 
To unsubscribe from this list, please send an email to
[EMAIL PROTECTED] with "unsubscribe" in the 
subject, without the quotes.

Reply via email to