[opencms-dev] Error while building Email object
r.halfmann at metastream.net
r.halfmann at metastream.net
Thu Jun 21 20:31:02 CEST 2001
Entry from OpenCMS Logfile ...
[21.06.2001 19:52:39] <opencms_critical> [CmsMail] Error while building
Email object: null
that error occur if i use the CmsMail stuff:
code part ->
import com.opencms.template.*;
import com.opencms.file.*;
import com.opencms.core.*;
import java.util.*;
import javax.servlet.http.*;
import javax.servlet.*;
import java.io.*;
import java.sql.*;
import com.opencms.defaults.CmsMail;
import javax.mail.*;
import javax.mail.internet.*;
import javax.activation.*;
public class dogetit extends CmsXmlTemplate
{
...
...
String[] to = {"get at metastream.net"};
String from ="set at metastream.net";
String subject ="Just a Test";
String content = "Test Content";
CmsMail mailit = new CmsMail(from,to,subject,content,"text/plain");
mailit.start();
...
...
return
startProcessing(cms,templateDocument,elementName,parameters,templateSelector);
}
public boolean isCachable(CmsObject cms, String templateFile, String
elementName, Hashtable parameters, String templateSelector)
{
return false;
}
}
the same error occurs if i use any task mechanism (set email for some cms
users, set all jar files [mail, activation and so on], set the right
mailservers in registry.xml ...) - the page generate from the template
shows correctly but the mail don´t send ... and the log present me a line
like at the top of this page
any hints ???
thanx in advance
Robert Halfmann
-----------------------------------------------------
METASTREAM // Interaktiv Marketing GmbH
Linienstraße 98
D - 10115 Berlin
Tel.: 030 / 28874 - 0
Fax: 030 / 28874 - 100
http://www.metastream.net
email: r.halfmann at metastream.net
More information about the opencms-dev
mailing list