merrymonk has asked for the wisdom of the Perl Monks concerning the following question:
The results from this are below.$smtp = Net::SMTP->new($$ref_host_em); print "[send_em] smtp <$smtp>\n"; $sm_ma = $smtp->mail($$ref_from_em); $en = 0; $en = Win32::GetLastError(); $en_f = Win32::FormatMessage($en); print "[send_em] A en <$en> <$en_f> result of smtp send ma <$sm_ma>\n" +; #$sm_to = $smtp->to ($to_em_item); $sm_to = $smtp->to ($$ref_from_em); $en = 0; $en = Win32::GetLastError(); $en_f = Win32::FormatMessage($en); print "\n[send_em] B en <$en> <$en_f> result of smtp send ma <$sm_ma> + to <$sm_to> \n"; $sm_da = $smtp->data(); $en = 0; $en = Win32::GetLastError(); $en_f = Win32::FormatMessage($en); print "\n[send_em] C en <$en> <$en_f> result of smtp send ma <$sm_ma> + to <$sm_to> da <$sm_da>\n"; $sm_se = $smtp->datasend($message_body); $en = 0; $en = Win32::GetLastError(); $en_f = Win32::FormatMessage($en); print "\n[send_em] D en <$en> <$en_f> result of smtp send ma <$sm_ma> + to <$sm_to> da <$sm_da> se <$sm_se>\n"; $sm_ed = $smtp->dataend(); $en = 0; $en = Win32::GetLastError(); $en_f = Win32::FormatMessage($en); print "\n[send_em] E en <$en> <$en_f> result of smtp send ma <$sm_ma> + to <$sm_to> da <$sm_da> se <$sm_se> ed <$sm_ed>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: SMTP Email problems
by arc_of_descent (Hermit) on Jun 15, 2009 at 16:02 UTC | |
by merrymonk (Hermit) on Jun 16, 2009 at 16:37 UTC |