• Post Reply Bookmark Topic Watch Topic
  • New Topic

Transport in javamail  RSS feed

 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all:

Im trying to send a message with an attachment im my email client.
/ive tried using the Transport.send(message); to send it, but it refused to work.
I then tried the following code:

Transport transport=session.getTransport("smtp");
transport.connect(host,from,password);
transport.sendMessage(message,message.getAllRecipients());
transport.close()
It also didnt work, but it works when im just sending a normal message without attachments. I've done all the multipart stuff and so on.
So can anyone help please?
 
Ulf Dittmer
Rancher
Posts: 42972
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but it refused to work.

What does this mean? Are there error messages? If so, which ones? Anything in the mail server logs? Whatd eos your Java code creating the message look like?

It also didnt work

See comments above. Tell The Details.
[ January 26, 2006: Message edited by: Ulf Dittmer ]
 
Adewale Adebusoye
Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well thanks i solved the problem. i didnt have a relative path pointing to the file i wanted to attach. I only used just the file name
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!