sending email with attachment

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

sending email with attachment

Jad El Omeiri
Hi All,


I am trying to send an email with attachment, from Ofbiz.

Does anyone have an example on that?
Or should I directly use Java Mail to do it?

BTW I'm taking a look at sendMailMultiPartHiddenInLog to see if it can do it

Thanks,
Jad El Omeiri
Reply | Threaded
Open this post in threaded view
|

Re: sending email with attachment

gadget hlh
Hi Jad El Omeiri,

OFBiz framework have a function to send mail in Ecommerce component.
When you click "Submit Order" at last step Check out, ofbiz system will
send automatic email for customer.
This email will attach order list in file "order.pdf".



2014-04-17 16:00 GMT+07:00 Jad El Omeiri <[hidden email]>:

> Hi All,
>
>
> I am trying to send an email with attachment, from Ofbiz.
>
> Does anyone have an example on that?
> Or should I directly use Java Mail to do it?
>
> BTW I'm taking a look at sendMailMultiPartHiddenInLog to see if it can do
> it
>
> Thanks,
>
>
>
> -----
> Jad El Omeiri
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/sending-email-with-attachment-tp4650364.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>
Reply | Threaded
Open this post in threaded view
|

Re: sending email with attachment

Jad El Omeiri
Hi,

Thank you very much.
That is exactly what I needed to know.

Will look at how it is implemented, and do the same.

Cheers,

Jad

gadget hlh wrote
Hi Jad El Omeiri,

OFBiz framework have a function to send mail in Ecommerce component.
When you click "Submit Order" at last step Check out, ofbiz system will
send automatic email for customer.
This email will attach order list in file "order.pdf".
Jad El Omeiri
Reply | Threaded
Open this post in threaded view
|

Re: sending email with attachment

Harsha Chadhar
In reply to this post by gadget hlh
Hi Jad El Omeiri,

Ofbiz is already integrated with JavaMail framework. Please refer to the
sendMail services in EmailServices.java which is a very basic service to
send/receive emails. This service also handles sending attachments.


Regards
Harsha Chadhar
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you


Reply | Threaded
Open this post in threaded view
|

Re: sending email with attachment

Jad El Omeiri
Hi Harsha,


Thank you for your reply.

What I meant by using JavaMail directly, was to use the JavaMail methods without using what has been implemented in Ofbiz.
Concerning the EmailServices, I have already used previously sendMailHiddenInLog and it worked fine.
I just wasn't sure that one could also use it to attach files.
Now that you're confirming that, I know I will use these services.

Thanks again!

Jad

Harsha Chadhar wrote
Hi Jad El Omeiri,

Ofbiz is already integrated with JavaMail framework. Please refer to the
sendMail services in EmailServices.java which is a very basic service to
send/receive emails. This service also handles sending attachments.


Regards
Harsha Chadhar
=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
Jad El Omeiri