B
Bauduin Raphael
Hi,
I have to send a mail from a Ruby script, and wonder what's the best way
to do it.
I saw net/smpt, but I need to write the headers myself (eg if I want to
define a subject I have to write Subject: blah\n )
I saw Rubymail, which anable me to easily construct a mail with headers,
but it doesnt send it (same for Tmail I think).
So, do I have to combine both to send a mail? Isn't there simply
something like
Mail::send_mail(from, to, subject, body) ?
Thanks for your help and advices.
Raph
I have to send a mail from a Ruby script, and wonder what's the best way
to do it.
I saw net/smpt, but I need to write the headers myself (eg if I want to
define a subject I have to write Subject: blah\n )
I saw Rubymail, which anable me to easily construct a mail with headers,
but it doesnt send it (same for Tmail I think).
So, do I have to combine both to send a mail? Isn't there simply
something like
Mail::send_mail(from, to, subject, body) ?
Thanks for your help and advices.
Raph