uhg, I got a MethodError…
julia> message = """
To: myTestAddress@gmail.com
From: myFromAdress@myServer.org
Subject: One-line subject
This is the content of the email."""
"To: myTestAddress@gmail.com\nFrom: myFromAdress@myServer.org\nSubject: One-line subject\n\nThis is the content of the email."
julia> sendEmailCmd = pipeline(IOBuffer(message), `sendmail -t`)
pipeline(`sendmail -t`, stdin=IOBuffer(data=UInt8[...], readable=true, writable=false, seekable=true, append=false, size=120, maxsize=Inf, ptr=1, mark=-1))
julia> run(sendEmailCmd)
ERROR: MethodError: no method matching rawhandle(::Base.GenericIOBuffer{Array{UInt8,1}})
Closest candidates are:
rawhandle(::RawFD) at process.jl:149
rawhandle(::Base.DevNull) at process.jl:148
rawhandle(::Base.Filesystem.File) at filesystem.jl:69
...
Stacktrace:
[1] _jl_spawn(::String, ::Array{String,1}, ::Cmd, ::Tuple{Base.GenericIOBuffer{Array{UInt8,1}},RawFD,RawFD}) at ./process.jl:345
[2] (::getfield(Base, Symbol("##493#494")){Cmd})(::Tuple{Base.GenericIOBuffer{Array{UInt8,1}},RawFD,RawFD}) at ./process.jl:509
[3] setup_stdio(::getfield(Base, Symbol("##493#494")){Cmd}, ::Tuple{Base.GenericIOBuffer{Array{UInt8,1}},RawFD,RawFD}) at ./process.jl:490
[4] #_spawn#492(::Nothing, ::Function, ::Cmd, ::Tuple{Base.GenericIOBuffer{Array{UInt8,1}},RawFD,RawFD}) at ./process.jl:508
[5] (::getfield(Base, Symbol("#kw##_spawn")))(::NamedTuple{(:chain,),Tuple{Nothing}}, ::typeof(Base._spawn), ::Cmd, ::Tuple{Base.GenericIOBuffer{Array{UInt8,1}},RawFD,RawFD}) at ./none:0
[6] #_spawn#489(::Nothing, ::Function, ::Base.CmdRedirect, ::Tuple{RawFD,RawFD,RawFD}) at ./process.jl:398
[7] _spawn at ./process.jl:398 [inlined]
[8] #run#503(::Bool, ::Function, ::Base.CmdRedirect) at ./process.jl:662
[9] run(::Base.CmdRedirect) at ./process.jl:661
[10] top-level scope at none:0