Menu

#50 EmailException

2.1.0
closed
None
5
2025-09-06
2012-03-10
Anonymous
No

I modified Example 2: Canon products at Yahoo Shopping to send the results to my gmail account using the following line (Replacing the email, username and password fields with my information):

<mail smtp-host="smtp.gmail.com" smtp-port="465" security="ssl" type="html" from="MY_EMAIL_ADDRESS" to="MY_EMAIL_ADDRESS" username="MY_USER_NAME" password="MY_PASSWORD" subject="Canon Products">

I receive this error while sending an HTML type email:

ERROR - org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465
org.webharvest.runtime.processors.plugins.MailPluginException: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465
at org.webharvest.runtime.processors.plugins.MailPlugin.executePlugin(Unknown Source)
at org.webharvest.runtime.processors.WebHarvestPlugin.execute(Unknown Source)
at org.webharvest.runtime.processors.BaseProcessor.run(Unknown Source)
at org.webharvest.runtime.Scraper.execute(Unknown Source)
at org.webharvest.runtime.Scraper.execute(Unknown Source)
at org.webharvest.gui.ScraperExecutionThread.run(Unknown Source)
Caused by: org.apache.commons.mail.EmailException: Sending the email to the following server failed : smtp.gmail.com:465
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1138)
at org.apache.commons.mail.Email.send(Email.java:1163)
... 6 more
Caused by: javax.mail.MessagingException: IOException while sending message;
nested exception is:
javax.activation.UnsupportedDataTypeException: no object DCH for MIME type multipart/related;
boundary="----=_Part_0_26773638.1331364936168"
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:577)
at javax.mail.Transport.send0(Transport.java:151)
at javax.mail.Transport.send(Transport.java:80)
at org.apache.commons.mail.Email.sendMimeMessage(Email.java:1128)
... 7 more

If I change the type to Text, everything works correctly. This error only happens when I switch the type attribute to HTML. My message content is an HTML table with rows and columns.

Discussion

  • Anonymous

    Anonymous - 2012-03-10

    By the way, this is using the 2.0 beta version: webharvest2b1-exe.zip

     

    Last edit: Anonymous 2015-11-18
  • Anonymous

    Anonymous - 2012-03-13

    I noticed that this issue only occurs in the standalone downloadable jar. I pulled down the source and ran it in Eclipse and it works fine.

     

    Last edit: Anonymous 2014-12-08
  • Piotr Dyraga

    Piotr Dyraga - 2012-11-15
    • milestone: --> Backlog
     
  • Maciej Czapiewski

    • Description has changed:

    Diff:

    --- old
    +++ new
    @@ -1,6 +1,8 @@
     I modified Example 2: Canon products at Yahoo Shopping to send the results to my gmail account using the following line (Replacing the email, username and password fields with my information):
    
    +~~~~~~
     <mail smtp-host="smtp.gmail.com" smtp-port="465" security="ssl" type="html" from="MY_EMAIL_ADDRESS" to="MY_EMAIL_ADDRESS" username="MY_USER_NAME" password="MY_PASSWORD" subject="Canon Products">
    +~~~~~~
    
     I receive this error while sending an HTML type email:
    
     
  • Maciej Czapiewski

    • status: open --> accepted
    • assigned_to: Maciej Czapiewski
    • milestone: Backlog --> 2.1.0rc1-RELEASE
     
  • Maciej Czapiewski

    Hello,

    The version 2.1 we are working on is free of this bug, so I suggest you to wait for its release - it should be soon.
    Additionally, I attach properly modified canon.xml and function.xml files containing example configuration which uses namespaces from version 2.1, because mail plugin was not available in version 1.0.

    Regards,
    Maciej

     
  • Maciej Czapiewski

    canon.xml file

     
  • Maciej Czapiewski

    functions.xml file

     
  • Maciej Czapiewski

    • status: accepted --> closed
     

Anonymous
Anonymous

Add attachments
Cancel





MongoDB Logo MongoDB