Last modified on 13 November 2012, at 10:51

REBOL Programming/resend

USAGE:Edit

RESEND to from message 

DESCRIPTION:Edit

Relay a message

RESEND is a function value.

ARGUMENTSEdit

  • to -- (Type: any)
  • from -- (Type: any)
  • message -- (Type: any)

SOURCE CODEEdit

resend: func [
    "Relay a message" 
    to from message /local smtp-port
][
    smtp-port: open [scheme: 'esmtp] 
    insert smtp-port reduce [from reduce [to] message] 
    close smtp-port
]