problem in attachment sending...!_NEWLINE_!Can anybody help me...
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   sethu_rajan
Posted On:   Wednesday, July 4, 2001 08:41 PM

Friends, I am doing project in Java Mail API. Today I done code to send attachment. But that code work only when I put a file to attach. Normally attachment is optional, but if I not give filename to attach the coding is not working. Is there any reason for this specially. I also, check the condition as below, if(filename!="") { //code for send mime type } else { //code for send text type } Please clear my problem and also advance Thank you for all.    More>>



Friends,

I am doing project in Java Mail API.
Today I done code to send attachment.
But that code work only when I put
a file to attach.

Normally attachment is optional, but
if I not give filename to attach the
coding is not working.
Is there any reason for this specially.
I also,
check the condition as below,



			

if(filename!="")
{
//code for send mime type
}
else
{
//code for send text type
}





Please clear my problem and also advance
Thank you for all.


   <<Less

Re: problem in attachment sending...!_NEWLINE_!Can anybody help me...

Posted By:   Carlos_Guardiola  
Posted On:   Thursday, July 5, 2001 12:56 AM

Hi

Maybe you are not checking the condition properly... Is 'filename' a string? If so, you should check it doing

if (!filename.equals(""))

Hope it helps,

Carlos

About | Sitemap | Contact