Hi Amit, Now you can able to send the email with the attachment. You can download the new connector from[1] and the documentation about sending the email with attachment can be found in[2]
[1] - https://store.wso2.com/store/assets/esbconnector/details/74539b71-3b72-49c1-a21a-f08ad7d7d4ad [2] - https://docs.wso2.com/display/ESBCONNECTORS/Working+with+Messages+in+Gmail#WorkingwithMessagesinGmail-sendMailWithAttachment On Mon, Jul 24, 2017 at 9:46 AM, Amit Rajvanshi <[email protected]> wrote: > Hi Malaka, > > > > We are sending Email through ESB SMTP transport, I know that we can send > body as attachment through ESB but > > We need to send mail body and attachment together for notification purpose. > > > > *Scenario is* : we need to notify customer for processing of import file > through mail and need to attach Carbon log file as attachment. > > Which is present @ wso2esb-5.0.0\repository\logs\wso2carbon.log > > > > I am using below property for attachment : > > > > <property name=*"transport.mail.Format"* scope=*"axis2"* type=*"STRING"* > value=*"Attachment"*/> > > <property name=*"AttachmentFile"* scope=*"axis2"* value=*"file.txt"*/> > > > > Which actually send mail body as attachment. But we cannot send mail body > with it. > > Best regards, > *Amit Rajvanshi* > > *Technical Consultant* > *Office: *+91-120-4737401 <+91%20120%20473%207401> > > *Mobile*: +91 9871001235 <+91%2098710%2001235> > > *Email*: [email protected] > > [image: cid:[email protected]] <https://salmon.com/in-en/> > > > > *[image: cid:[email protected]]* > <https://twitter.com/Salmon_India> *[image: > cid:[email protected]]* > <https://www.linkedin.com/company/salmon-india> *[image: > cid:[email protected]]* > <https://plus.google.com/116105780357981423232> *[image: > cid:[email protected]]* > <https://www.facebook.com/SalmonIndiaLtd/> *[image: > cid:[email protected]]* <http://www.pinterest.com/salmonltd/> > *[image: cid:[email protected]]* > <https://www.youtube.com/user/salmonlimited> *[image: > cid:[email protected]]* <http://www.slideshare.net/salmonltd> > > > > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > > > > *From:* Malaka Silva [mailto:[email protected]] > *Sent:* 21 July 2017 19:59 > *To:* WSO2 Developers' List > *Cc:* Amit Rajvanshi; Hariprasath Thanarajah > *Subject:* Fwd: Mail Attachment > > > > Hi Amit, > > > > Can you provide more details how are you sending the mail. Are you using > ESB SMTP transport or GMail connector? > > > > We can send messages with attachments using gmail connector. [1] > > > > @Haprprasath - Can we do the same use case with GMail connector? > > > > [1] https://docs.wso2.com/display/ESBCONNECTORS/Working+ > with+Messages+in+Gmail#WorkingwithMessagesinGmail-sendMailWithAttachment > > > > + wso2 dev > > > > ---------- Forwarded message ---------- > From: *Amit Rajvanshi* <[email protected]> > Date: Fri, Jul 21, 2017 at 2:45 PM > Subject: Mail Attachment > To: Malaka Silva <[email protected]> > > Hi Malaka, > > > > Could you please help me , I have stuck in the middle of development in > WSO2 ESB. > > I need to attach a file (available on system directory) while sending the > mail through a sequence mediator. > > Any reference will be appreciated. > > > > Best regards, > *Amit Rajvanshi* > > *Technical Consultant* > *Office: *+91-120-4737401 <+91%20120%20473%207401> > > *Mobile*: +91 9871001235 <+91%2098710%2001235> > > *Email*: [email protected] > > [image: cid:[email protected]] <https://salmon.com/in-en/> > > > > *[image: cid:[email protected]]* > <https://twitter.com/Salmon_India> *[image: > cid:[email protected]]* > <https://www.linkedin.com/company/salmon-india> *[image: > cid:[email protected]]* > <https://plus.google.com/116105780357981423232> *[image: > cid:[email protected]]* > <https://www.facebook.com/SalmonIndiaLtd/> *[image: > cid:[email protected]]* <http://www.pinterest.com/salmonltd/> > *[image: cid:[email protected]]* > <https://www.youtube.com/user/salmonlimited> *[image: > cid:[email protected]]* <http://www.slideshare.net/salmonltd> > > > > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > > > > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > > > > > > -- > > > > Best Regards, > > > Malaka Silva > > Associate Director / Architect > M: +94 777 219 791 <+94%2077%20721%209791> > > Tel : 94 11 214 5345 > > Fax :94 11 2145300 > > Skype : malaka.sampath.silva > > LinkedIn : http://www.linkedin.com/pub/malaka-silva/6/33/77 > > Blog : http://mrmalakasilva.blogspot.com/ > > > > WSO2, Inc. > > lean . enterprise . middleware > https://wso2.com/signature > > http://www.wso2.com/about/team/malaka-silva/ > <http://wso2.com/about/team/malaka-silva/> > > https://store.wso2.com/store/ > > Don't make Trees rare, we should keep them with care > Information contained in this e-mail and any attachments is confidential > and intended for the use of the addressee only. Dissemination, > distribution, copying or use of this communication without prior permission > of the addressee is strictly prohibited. If you have received this > transmission in error, please advise the originator by reply e-mail and > delete it. Thank you. Salmon India’s Registered Address is: B-13, Sector > 57, Noida (U.P.) 201301. Registered in India U72200DL2003PTC120356. > -- *Thank you and Regards,**Hariprasath Thanarajah* Software Engineer | WSO2 E: [email protected] M: +94 75 2806528, +94 77 7216903 Blog: hariwso2.blogspot.com Skype : hariss636 LinkedIn : https://www.linkedin.com/in/hariprasath-thanarajah-5234b660 WSO2, Inc. lean . enterprise . middleware https://wso2.com/signature http://wso2.com/about/team/hariprashath-thanarajah/
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
