SPUG: Send email from XP

Ron Pero spug at magnadev.com
Wed Jun 4 18:04:36 PDT 2008

After your suggestion and some trial and error, I've learned how to do it. My spam filter also marks 
messages that don't have a To: line, so I learned to add that too.

$body = "To: rpero\@magnadev.com\nSubject: For Ron\n\nHi. This is Rons test";

Will also try the combo of Net::SMTP and MIME::Lite that was suggested.

When I try Mail::DWIM, it fails with this error:
The getpwuid function is unimplemented at C:/Perl/site/lib/Mail/DWIM.pm line 50.

Is getpwuid simply not implemented on Windows, or is it some other flaw?

Thanks again to everyone.


Bill Campbell wrote:
> On Wed, Jun 04, 2008, Ron Pero wrote:
>> Bingo!
>> Thanks everyone for your excellent suggestions. It is working for me now.
>> So far I have tried Net::SMTP (If I could figure out how to add a subject line, the messages might 
>> get past my spam filter!) and blat.
> All you have to do is create the Subject (and any other headers)
> as the first part of the data you send to the STMP server.  The
> headers are separated from the body by a single blank line.
> Bill

More information about the spug-list mailing list