[Opensource] Using e-mail
Eddie Lewis
ELewis at copyright.com.au
Thu Dec 12 18:54:58 PST 2002
Use the User object
// get the current user id
PersistentSession psess = request.getSession();
Integer iUID = (Integer)psess.getPersistentAttribute("uid");
int iuid = iUID.intValue();
User client = new User();
client.setUid(iuid); // pass the user id, can pass any valid userid from the
users table.
client.retrieve();
String clientEmail = client.getEmail();
String sSubjectClient = "Thank you for your request.";
StringBuffer sClientMsg = new StringBuffer("Thank you for .....\n\n");
sClientMsg.append("In the meantime, if you have any questions, please email
us at somewhere.com.au");
try {
client.notify(sSubjectClient, sClientMsg.toString());
} catch (Exception e) {
// exception handle
}
-----Original Message-----
From: M.Siepel [mailto:m.siepel at thefactore.com]
Sent: Thursday, 12 December 2002 11:15 PM
To: opensource at jcorporate.com
Subject: [Opensource] Using e-mail
Hi there,
I have a form on my website wich I would like to send to myself through
e-mail. Does expresso support any e-mail features (just for sending)? Or do
I have to write an e-mail application myself?
With kind regards,
Marcel Siepel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.jcorporate.com/pipermail/opensource/attachments/20021213/d67f744f/attachment-0002.htm
More information about the Opensource
mailing list