Submitting form to email - java servlets....

  • YaKoB
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 12, 2004
  • Posts: 12
  • Loc: Wagga, Australia
  • Status: Offline

Post May 12th, 2004, 10:47 pm

Jus wondering if I can email form oce submitted, but output meaningful info such as:
Date: 10//10/2004
Contact No.: 0465897385

etc....
rather than
date;10102004;contact_no;0465643243

bla bla bla

Is the only "functional part of the site so language doesn;t really bother me, I just know how to write basic servlets.....

Thanks

Jacob
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post May 12th, 2004, 10:47 pm

  • Bigwebmaster
  • Site Admin
  • Site Admin
  • User avatar
  • Joined: Dec 20, 2002
  • Posts: 8925
  • Loc: Seattle, WA & Phoenix, AZ
  • Status: Offline

Post May 14th, 2004, 1:45 am

Hi YaKoB,

I am not really understanding what you are trying to ask. Are you wanting to make so once someone submits something through a Java Servlet that it emails you information formatted like you want? Please be really clear on the question as you will probably get more people answering then.
Ozzu Hosting - Want your website on a fast server like Ozzu?
  • YaKoB
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 12, 2004
  • Posts: 12
  • Loc: Wagga, Australia
  • Status: Offline

Post May 14th, 2004, 5:18 pm

Yeah, mate, sorry!
Have a basic form that has contact details etc. but instead of storing it, I want the parameters to be sent using
Code: [ Select ]
mailto:"adadas@asda.com"
or woteva it is. Although I know how to do this, what I want is to be able to format I guess what is being sent, so the data in the email is structured and meaningful to any "normal" person.

Hope this is clearer :)

Jacob
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 14th, 2004, 5:31 pm

YaKoB

Might be helpful to see the code you are currently using. Personally, I've never formatted an email with javascript, but I'm certain many here have. Let's see what you're doing so we can help you fix it. I normally use Jmail or Formmail, neither of which are going to be javascript, but there's a few good javascript folks around here that may see what you're missing.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.
  • YaKoB
  • Newbie
  • Newbie
  • User avatar
  • Joined: May 12, 2004
  • Posts: 12
  • Loc: Wagga, Australia
  • Status: Offline

Post May 14th, 2004, 5:39 pm

I haven't started it.... LoL
I realise the form data is going to have to be submitted to a servlet first I guess, then formatted then hopefully sent to an email in that format. Perhaps I could generate a HTML page that is sent as an email? It only needs to go to a static email address so no probs with HTML.

As for the Jmail and Formmail, I have never heard of them, so if they are freeware, or easily learnt coding I am more than willing to give them a go.

Thanks

Jacob
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 23404
  • Loc: Woodbridge VA
  • Status: Offline

Post May 14th, 2004, 6:45 pm

What is your websites's server's OS? Linux/Unix or Windows or Other? Jmail is a Windows ASP emailer. And Formmail is a Perl based mailer that works on anything that supports Perl (usually Linux servers). If you're on a Linux server then you could probably also yuse php mail to accomplish your purpose and there's quite a few here that can help you with that.

I guess the point is we need a few more details about what you have to work with so we can get you from here to there. Besides, when you use the term "servlet" I sorta think Java so I'm not certain at this point what language you're attempting to code this in, and equally uncertain what your server supports.
"There's no place like 127.0.0.1 except for ::1."
Alexandria Networks. Leader in IT consulting for associations/non-profits, and small to medium sized businesses around the northern Virginia and Washington D.C. metro area.

Post Information

  • Total Posts in this topic: 6 posts
  • Users browsing this forum: No registered users and 171 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.