I have a requirement to send an email with two or more attachments one would be a .doc(word) file and other would be .pdf(PDF) file, can anyone suggest me at earliest how to send in single mail with two or more attachments.
You can create a document list by referring attachments inside the list, the variables in this document list should be same as in the input signature of [b]pub.client.smtp[/b] or the attachments variable, populate the variables with values for each attachment need to be sent and map the resultant document list to the input of smtp service and you are done.
As you want to pass PDF and doc/word files you need to specify the below content type and file names:
[b]For PDF:[/b] [b]Content/MIME type :[/b] application/pdf
[b]File type :[/b] pdf
[b]For Word:[/b] [b]Content/MIME type :[/b] application/msword
[b]File type :[/b] doc
Read more about this built in Service at [url=http://documentation.softwareag.com/webmethods/wmsuites/wMdoc/_webM_suite_65/Developer/Developer%206.5%20Service%20Pack%201/webMethods%20Integration%20Server%20Built-In%20Services%20Reference%206.5%20SP1.pdf]http://documentation.softwareag.com/webmethods/wmsuites/wMdoc/_webM_suite_65/Developer/Developer%206.5%20Service%20Pack%201/webMethods%20Integration%20Server%20Built-In%20Services%20Reference%206.5%20SP1.pdf[/url] Built in services ref guide.
George
Hi,
I have a requirement to send an email with two or more attachments one would be a .doc(word) file and other would be .pdf(PDF) file, can anyone suggest me at earliest how to send in single mail with two or more attachments.
Your quick response is highly appreciated.
Thank you.
Tomas
Hi,
You can create a document list by referring attachments inside the list, the variables in this document list should be same as in the input signature of [b]pub.client.smtp[/b] or the attachments variable, populate the variables with values for each attachment need to be sent and map the resultant document list to the input of smtp service and you are done.
As you want to pass PDF and doc/word files you need to specify the below content type and file names:
[b]For PDF:[/b] [b]Content/MIME type :[/b] application/pdf
[b]File type :[/b] pdf
[b]For Word:[/b] [b]Content/MIME type :[/b] application/msword
[b]File type :[/b] doc
Read more about this built in Service at [url=http://documentation.softwareag.com/webmethods/wmsuites/wMdoc/_webM_suite_65/Developer/Developer%206.5%20Service%20Pack%201/webMethods%20Integration%20Server%20Built-In%20Services%20Reference%206.5%20SP1.pdf]http://documentation.softwareag.com/webmethods/wmsuites/wMdoc/_webM_suite_65/Developer/Developer%206.5%20Service%20Pack%201/webMethods%20Integration%20Server%20Built-In%20Services%20Reference%206.5%20SP1.pdf[/url] Built in services ref guide.
[b]Other MIME types by content type:[/b]
[b]MIME Type[/b] [b][center]File Extension[/center][/b]
application/envoy [center]evy[/center]
application/fractals [center]fif[/center]
application/futuresplash [center]spl[/center]
application/hta [center]hta[/center]
application/internet-property-stream [center]acx[/center]
application/mac-binhex40 [center]hqx[/center]
application/msword [center]doc[/center]
application/msword [center]dot[/center]
application/octet-stream [center]*[/center]
application/octet-stream [center]bin[/center]
application/octet-stream [center]class[/center]
application/octet-stream [center]dms[/center]
application/octet-stream [center]exe[/center]
application/octet-stream [center]lha[/center]
application/octet-stream [center]lzh[/center]
application/oda [center]oda[/center]
application/olescript [center]axs[/center]
application/pdf [center]pdf[/center]
application/pics-rules [center]prf[/center]
application/pkcs10 [center]p10[/center]
application/pkix-crl [center]crl[/center]
application/postscript [center]ai[/center]
application/postscript [center]eps[/center]
application/postscript [center]ps[/center]
application/rtf [center]rtf[/center]
application/set-payment-initiation [center]setpay[/center]
application/set-registration-initiation [center]setreg[/center]
application/vnd.ms-excel [center]xla[/center]
application/vnd.ms-excel [center]xlc[/center]
application/vnd.ms-excel [center]xlm[/center]
application/vnd.ms-excel [center]xls[/center]
application/vnd.ms-excel [center]xlt[/center]
application/vnd.ms-excel [center]xlw[/center]
application/vnd.ms-outlook [center]msg[/center]
application/vnd.ms-pkicertstore [center]sst[/center]
application/vnd.ms-pkiseccat [center]cat[/center]
application/vnd.ms-pkistl [center]stl[/center]
application/vnd.ms-powerpoint [center]pot[/center]
application/vnd.ms-powerpoint [center]pps[/center]
application/vnd.ms-powerpoint [center]ppt[/center]
application/vnd.ms-project [center]mpp[/center]
application/vnd.ms-works [center]wcm[/center]
application/vnd.ms-works [center]wdb[/center]
application/vnd.ms-works [center]wks[/center]
application/vnd.ms-works [center]wps[/center]
application/winhlp [center]hlp[/center]
application/x-bcpio [center]bcpio[/center]
application/x-cdf [center]cdf[/center]
application/x-compress [center]z[/center]
application/x-compressed [center]tgz[/center]
application/x-cpio [center]cpio[/center]
application/x-csh [center]csh[/center]
application/x-director [center]dcr[/center]
application/x-director [center]dir[/center]
application/x-director [center]dxr[/center]
application/x-dvi [center]dvi[/center]
application/x-gtar [center]gtar[/center]
application/x-gzip [center]gz[/center]
application/x-hdf [center]hdf[/center]
application/x-internet-signup [center]ins[/center]
application/x-internet-signup [center]isp[/center]
application/x-iphone [center]iii[/center]
application/x-javascript [center]js[/center]
application/x-latex [center]latex[/center]
application/x-msaccess [center]mdb[/center]
application/x-mscardfile [center]crd[/center]
application/x-msclip [center]clp[/center]
application/x-msdownload [center]dll[/center]
application/x-msmediaview [center]m13[/center]
application/x-msmediaview [center]m14[/center]
application/x-msmediaview [center]mvb[/center]
application/x-msmetafile [center]wmf[/center]
application/x-msmoney [center]mny[/center]
application/x-mspublisher [center]pub[/center]
application/x-msschedule [center]scd[/center]
application/x-msterminal [center]trm[/center]
application/x-mswrite [center]wri[/center]
application/x-netcdf [center]cdf[/center]
application/x-netcdf [center]nc[/center]
application/x-perfmon [center]pma[/center]
application/x-perfmon [center]pmc[/center]
application/x-perfmon [center]ml[/center]
application/x-perfmon [center]pmr[/center]
application/x-perfmon [center]pmw[/center]
application/x-pkcs12 [center]p12[/center]
application/x-pkcs12 [center]pfx[/center]
application/x-pkcs7-certificates [center]p7b[/center]
application/x-pkcs7-certificates [center]spc[/center]
application/x-pkcs7-certreqresp [center]p7r[/center]
application/x-pkcs7-mime [center]p7c[/center]
application/x-pkcs7-mime [center]p7m[/center]
application/x-pkcs7-signature [center]p7s[/center]
application/x-sh [center]sh[/center]
application/x-shar [center]shar[/center]
application/x-shockwave-flash [center]swf[/center]
application/x-stuffit [center]sit[/center]
application/x-sv4cpio [center]sv4cpio[/center]
application/x-sv4crc [center]sv4crc[/center]
application/x-tar [center]tar[/center]
application/x-tcl [center]tcl[/center]
application/x-tex [center]tex[/center]
application/x-texinfo [center]texi[/center]
application/x-texinfo [center]texinfo[/center]
application/x-troff [center]roff[/center]
application/x-troff [center]t[/center]
application/x-troff [center]tr[/center]
application/x-troff-man [center]man[/center]
application/x-troff-me [center]me[/center]
application/x-troff-ms [center]ms[/center]
application/x-ustar [center]ustar[/center]
application/x-wais-source [center]src[/center]
application/x-x509-ca-cert [center]cer[/center]
application/x-x509-ca-cert [center]crt[/center]
application/x-x509-ca-cert [center]der[/center]
application/ynd.ms-pkipko [center]pko[/center]
application/zip [center]zip[/center]
audio/basic [center]au[/center]
audio/basic [center]snd[/center]
audio/mid [center]mid[/center]
audio/mid [center]rmi[/center]
audio/mpeg [center]mp3[/center]
audio/x-aiff [center]aif[/center]
audio/x-aiff [center]aifc[/center]
audio/x-aiff [center]aiff[/center]
audio/x-mpegurl [center]m3u[/center]
audio/x-pn-realaudio [center]ra[/center]
audio/x-pn-realaudio [center]ram[/center]
audio/x-wav [center]wav[/center]
image/bmp [center]bmp[/center]
image/cis-cod [center]cod[/center]
image/gif [center]gif[/center]
image/ief [center]ief[/center]
image/jpeg [center]jpe[/center]
image/jpeg [center]jpeg[/center]
image/jpeg [center]jpg[/center]
image/pipeg [center]jfif[/center]
image/svg+xml [center]svg[/center]
image/tiff [center]tif[/center]
image/tiff [center]tiff[/center]
image/x-cmu-raster [center]ras[/center]
image/x-cmx [center]cmx[/center]
image/x-icon [center]ico[/center]
image/x-portable-anymap [center]pnm[/center]
image/x-portable-bitmap [center]pbm[/center]
image/x-portable-graymap [center]pgm[/center]
image/x-portable-pixmap [center]ppm[/center]
image/x-rgb [center]rgb[/center]
image/x-xbitmap [center]xbm[/center]
image/x-xpixmap [center]xpm[/center]
image/x-xwindowdump [center]xwd[/center]
message/rfc822 [center]mht[/center]
message/rfc822 [center]mhtml[/center]
message/rfc822 [center]nws[/center]
text/css [center]css[/center]
text/h323 [center]323[/center]
text/html [center]htm[/center]
text/html [center]html[/center]
text/html [center]stm[/center]
text/iuls [center]uls[/center]
text/plain [center]bas[/center]
text/plain [center]c[/center]
text/plain [center]h[/center]
text/plain [center]txt[/center]
text/richtext [center]rtx[/center]
text/scriptlet [center]sct[/center]
text/tab-separated-values [center]tsv[/center]
text/webviewhtml [center]htt[/center]
text/x-component [center]htc[/center]
text/x-setext [center]etx[/center]
text/x-vcard [center]vcf[/center]
video/mpeg [center]mp2[/center]
video/mpeg [center]mpa[/center]
video/mpeg [center]mpe[/center]
video/mpeg [center]mpeg[/center]
video/mpeg [center]mpg[/center]
video/mpeg [center]mpv2[/center]
video/quicktime [center]mov[/center]
video/quicktime [center]qt[/center]
video/x-la-asf [center]lsf[/center]
video/x-la-asf [center]lsx[/center]
video/x-ms-asf [center]asf[/center]
video/x-ms-asf [center]asr[/center]
video/x-ms-asf [center]asx[/center]
video/x-msvideo [center]avi[/center]
video/x-sgi-movie [center]movie[/center]
x-world/x-vrml [center]flr[/center]
x-world/x-vrml [center]vrml[/center]
x-world/x-vrml [center]wrl[/center]
x-world/x-vrml [center]wrz[/center]
x-world/x-vrml [center]xaf[/center]
x-world/x-vrml [center]xof[/center]
Hope this clarifies your doubts :)