Results 1 to 2 of 2

Thread: send mail with zimbra lib

  1. #1
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    4

    Default send mail with zimbra lib

    Hi Dears...

    i want sending mail in my system company with zimbra library (my system comp=zimbra)...exactly i want zimbra send mail rather than using java API for send mail .

    in MailSender Class ..use sendMimeMessage() method :
    i get error :


    Code:
    Exception in thread "main" java.lang.NullPointerException
       at com.zimbra.cs.store.file.FileBlobStore.getUniqueIncomingBlob(FileBlobStore.java:64)
    	at com.zimbra.cs.store.file.FileBlobStore.getBlobBuilder(FileBlobStore.java:74)
    	at com.zimbra.cs.store.file.FileBlobStore.storeIncoming(FileBlobStore.java:80)
    	at com.zimbra.cs.store.StoreManager.storeIncoming(StoreManager.java:86)
    	at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:4420)
    	at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:4365)
    	at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:4302)
    	at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:384)
    	at run.main(run.java:132)
    and after added "StoreManager.getInstance().startup() " line
    i get error :
    Code:
    Exception in thread "main" java.lang.NullPointerException
    	at com.zimbra.cs.redolog.op.RedoableOp.start(RedoableOp.java:306)
    	at com.zimbra.cs.redolog.op.CreateMessage.start(CreateMessage.java:115)
    	at com.zimbra.cs.mailbox.Mailbox.beginTransaction(Mailbox.java:1203)
    	at com.zimbra.cs.mailbox.Mailbox.beginTransaction(Mailbox.java:1185)
    	at com.zimbra.cs.mailbox.Mailbox.addMessageInternal(Mailbox.java:4549)
    	at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:4432)
    	at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:4365)
    	at com.zimbra.cs.mailbox.Mailbox.addMessage(Mailbox.java:4302)
    	at com.zimbra.cs.mailbox.MailSender.sendMimeMessage(MailSender.java:384)
    	at run.main(run.java:132)
    can you help me...???

    Thanks...

  2. #2
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    10

    Default

    I'm not familiar with this API at all, but I think you might be using the low level API's to access the mail store. Take a look at the client packages instead. Also take a look at the social zimlet, which sends a email message. Remember that anything you can do in Javascript, you can do in Java.

Similar Threads

  1. fatal: parameter "smtpd_recipient_restrictions"
    By Robin in forum Administrators
    Replies: 8
    Last Post: 12-22-2010, 05:48 AM
  2. Problem with Postfix and MTA
    By ZMilton in forum Administrators
    Replies: 16
    Last Post: 04-16-2008, 07:47 AM
  3. Cleanup after many upgrades
    By tobru in forum Installation
    Replies: 1
    Last Post: 12-23-2007, 09:21 AM
  4. Zimbra shutdowns every n hours.
    By Andrewb in forum Administrators
    Replies: 13
    Last Post: 08-14-2007, 09:55 AM
  5. Can't start Zimbra!
    By zibra in forum Administrators
    Replies: 5
    Last Post: 03-22-2007, 12:34 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •