Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

javax.mail.MessagingException: Missing start boundary

Status
Not open for further replies.

Pitone

Programmer
Oct 12, 2004
15
IT
Can somebody please help me to find why I receive this errore back?
The part of code in which it's generated it's the following:


Object o = m.getContent();





if (o instanceof String) {

int ptr,ptr1,ptr2;
String addr=new String();
String content=new String(o.toString());
//System.out.println(content);
ptr1=content.indexOf("To: ");
ptr1=ptr1+4;
ptr2=content.indexOf("\n",ptr1);
//System.out.println("Indici : " + ptr1 + " " + ptr2);
addr=content.substring(ptr1,ptr2);
System.out.println("Indirizzo: " + addr);


}

else if (o instanceof Multipart) {
System.out.println("**This is a Multipart Message. ");

/***** Conto di quante parti è composto il messaggio *****/

Multipart mp = (Multipart)m.getContent();;
int count3 = mp.getCount();







Thanks a lot!
 
int count3 = mp.getCount();

Thanks again mate!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top