R
rtilley
I searched the news group and found a script that sends email with
attachments. I modified it a bit to loop through an array sending to
multiple recipients, however, it seems that addresses with a '_' or a
'-' in them will sometimes produce an error on sending.
The script is too long to post here. Here is a link to it:
http://filebox.vt.edu/users/rtilley/public/email.rb
Would someone look it over to see what I'm doing wrong? I'm relatively
new to Ruby, so I'm sure I've just done something wrong. Perhaps it's
how I read the email addresses into an array?
Also, how would I insert a message-id into emails? Our mail server
complains when a message comes through without one and inserts one
itself. No big deal really, it just raises the spam score a tiny bit
(not that I spam)... these are legit emails.
Thanks to anyone who can offer help or advice!
Brad
attachments. I modified it a bit to loop through an array sending to
multiple recipients, however, it seems that addresses with a '_' or a
'-' in them will sometimes produce an error on sending.
The script is too long to post here. Here is a link to it:
http://filebox.vt.edu/users/rtilley/public/email.rb
Would someone look it over to see what I'm doing wrong? I'm relatively
new to Ruby, so I'm sure I've just done something wrong. Perhaps it's
how I read the email addresses into an array?
Also, how would I insert a message-id into emails? Our mail server
complains when a message comes through without one and inserts one
itself. No big deal really, it just raises the spam score a tiny bit
(not that I spam)... these are legit emails.
Thanks to anyone who can offer help or advice!
Brad