<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
Ok, now I don't get any errors but my jabber message is still not coming through, all I get is:<BR>
<BR>
03:29:26 PM] *** jabbermail is Online [forwarding email]<BR>
[03:29:26 PM] *** jabbermail is Offline<BR>
<BR>
Not the email that I sent.<BR>
<BR>
Any other thoughts?<BR>
<BR>
Thanks for all the help<BR>
<BR>
On Fri, 2005-12-16 at 00:14 +0200, Norman Rasmussen wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
<FONT COLOR="#000000">change</FONT>
<FONT COLOR="#000000">my $jabmsg->SetMessage(</FONT>
<FONT COLOR="#000000">to</FONT>
<FONT COLOR="#000000">$jabmsg->SetMessage(</FONT>
<FONT COLOR="#000000">and it'll all work.</FONT>
<FONT COLOR="#000000">On 12/16/05, Jon Scottorn <<A HREF="mailto:jscottorn@possibilityforge.com">jscottorn@possibilityforge.com</A>> wrote:</FONT>
<FONT COLOR="#000000">> That is what I have already: here is my smtp2jabber.pl</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> # Remove the attachment(s) from the message</FONT>
<FONT COLOR="#000000">> my $stripper = Mail::Message::Attachment::Stripper->new($msg);</FONT>
<FONT COLOR="#000000">> my Mail::Message $textonly = $stripper->message;</FONT>
<FONT COLOR="#000000">> my $body = $textonly->body;</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> # Connect to jabber</FONT>
<FONT COLOR="#000000">> my $jabber = &setup_Jabber(SERVER, PORT, USERNAME, PASSWORD, RESOURCE, "normal/forwarding email");</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> # Compose the message</FONT>
<FONT COLOR="#000000">> my $jabmsg = Net::Jabber::Message->new();</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> my $jabmsg->SetMessage(</FONT>
<FONT COLOR="#000000">> "to" => "$rcpt",</FONT>
<FONT COLOR="#000000">> "subject" => "$sender emailed: $subject",</FONT>
<FONT COLOR="#000000">> "body" => "$body");</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> # And send it</FONT>
<FONT COLOR="#000000">> $jabber->Send($jabmsg);</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> # Close the connection and exit</FONT>
<FONT COLOR="#000000">> $jabber->Disconnect();</FONT>
<FONT COLOR="#000000">> exit(0);</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> What part is messed up?</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Thanks</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> On Thu, 2005-12-15 at 23:29 +0200, Norman Rasmussen wrote:</FONT>
<FONT COLOR="#000000">> ahh, had to actually get this working on my dev box. It needs to be:</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> # Compose the message</FONT>
<FONT COLOR="#000000">> my $jabmsg = Net::Jabber::Message->new();</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> $jabmsg->SetMessage(</FONT>
<FONT COLOR="#000000">> "to" => "$rcpt",</FONT>
<FONT COLOR="#000000">> "subject" => "$sender emailed: $subject",</FONT>
<FONT COLOR="#000000">> "body" => "$body");</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> I think this would be much cooler with a full smtp transport gateway</FONT>
<FONT COLOR="#000000">> idea, but this works for now.</FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> On 12/15/05, Jon Scottorn <<A HREF="mailto:jscottorn@possibilityforge.com">jscottorn@possibilityforge.com</A>> wrote:</FONT>
<FONT COLOR="#000000">> > Still get same error</FONT>
<FONT COLOR="#000000">> ></FONT>
<FONT COLOR="#000000">> > here is what shows up in jabber</FONT>
<FONT COLOR="#000000">> ></FONT>
<FONT COLOR="#000000">> > [01:40:20 PM] *** jabbermail is Online [forwarding email]</FONT>
<FONT COLOR="#000000">> > [01:40:20 PM] *** jabbermail is Offline</FONT>
<FONT COLOR="#000000">> ></FONT>
<FONT COLOR="#000000">> > Don't know if that helps</FONT>
<FONT COLOR="#000000">> ></FONT>
<FONT COLOR="#000000">> ></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> --</FONT>
<FONT COLOR="#000000">> - Norman Rasmussen</FONT>
<FONT COLOR="#000000">> - Email: <A HREF="mailto:norman@rasmussen.co.za">norman@rasmussen.co.za</A></FONT>
<FONT COLOR="#000000">> - Home page: <A HREF="http://norman.rasmussen.co.za/">http://norman.rasmussen.co.za/</A></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">></FONT>
<FONT COLOR="#000000">> Jon Scottorn</FONT>
<FONT COLOR="#000000">> Systems Administrator</FONT>
<FONT COLOR="#000000">> The Possibility Forge, Inc.</FONT>
<FONT COLOR="#000000">> <A HREF="http://www.possibilityforge.com">http://www.possibilityforge.com</A></FONT>
<FONT COLOR="#000000">> 435.635.0591 x.1004</FONT>
<FONT COLOR="#000000">--</FONT>
<FONT COLOR="#000000">- Norman Rasmussen</FONT>
<FONT COLOR="#000000"> - Email: <A HREF="mailto:norman@rasmussen.co.za">norman@rasmussen.co.za</A></FONT>
<FONT COLOR="#000000"> - Home page: <A HREF="http://norman.rasmussen.co.za/">http://norman.rasmussen.co.za/</A></FONT>
</PRE>
</BLOCKQUOTE>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
<B><I><FONT SIZE="4"><FONT COLOR="#000080">Jon Scottorn</FONT></FONT></I></B><BR>
<I><FONT COLOR="#000080">Systems Administrator</FONT></I><BR>
<I><FONT COLOR="#000080">The Possibility Forge, Inc.</FONT></I><BR>
<I><FONT COLOR="#000080">http://www.possibilityforge.com</FONT></I><BR>
<I><FONT COLOR="#000080">435.635.0591 x.1004</FONT></I>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>