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.
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
By the way, this is using the 2.0 beta version: webharvest2b1-exe.zip
Last edit: Anonymous 2015-11-18
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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
Diff:
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
canon.xml file
functions.xml file