Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JSTL Jakarta Mailer Tag

 
Dave Harper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
I am having trouble with my mailer tags. I have to develop an application which uses them, but I don't have access to the server logs. The trouble is the page appears to be running correctly, except either the E-Mail isn't being sent, or is getting lost/bounced. I am getting no error messages in the page.
Is there a log which will give me a clue as to what is going on, so I can ask for it?
Here is the code:

Any help at all will be extremly appricated, as I am at a total dead end.
 
Dave Harper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The problem might be that the mail server wants a username and password to send mail. Is there a way of supplying this information?
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use the user and password attribute of mail tag.
 
Dave Harper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
Use the user and password attribute of mail tag.

[slaps head with palm of hand] Thanks. I will see if that fixes it
 
Dave Harper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope. Still Nothing.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
any error messages?
 
Dave Harper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Pradeep Bhat:
any error messages?

Not on the page. I am not sure where to look for errors other than that? I am still fairly new to JSTL, and especially Apache
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
try this:

hope it helps
 
Dave Harper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Nope, nothing. All I can think of is that the SMTP server is swallowing them up.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Dave Harper:
Nope, nothing. All I can think of is that the SMTP server is swallowing them up.

Exactly that code worked for me. Is too hard without the logs, it's like debugging a code by hand
 
Dave Harper
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I finally worked it out.
I wanted an anon return address, so filled it in as noreply@faculty.port.ac.uk, but the mail server wasn't having any of it unless I put in an actual 100% valid return address.
Thanks for your suggestions, guys
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic