<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Lisp to create pdf and send mail in Visual LISP, AutoLISP and General Customization Forum</title>
    <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/9081155#M87838</link>
    <description>&lt;P&gt;The problem is i can't figure out how to get this last created pdf as attachement in my mail.&lt;/P&gt;&lt;P&gt;I understand i should find it out myself, but i don't now how to get futher with this, and i can't find anything similar on the internet. I can find a lot on forums about autocad functions but not much about mailing withing acad.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was thinking in these following steps, so i put this order also in my lisp except for step 3. However, you made me doubt that the mail should be created before i create my pdf?&lt;/P&gt;&lt;P&gt;1. create pdf&lt;/P&gt;&lt;P&gt;2. create mail&lt;/P&gt;&lt;P&gt;3. put the pdf as attachement in mail&lt;/P&gt;</description>
    <pubDate>Fri, 11 Oct 2019 12:24:01 GMT</pubDate>
    <dc:creator>larsr2866</dc:creator>
    <dc:date>2019-10-11T12:24:01Z</dc:date>
    <item>
      <title>Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8835773#M87811</link>
      <description>&lt;P&gt;Good day&amp;nbsp;everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was wondering if it's even possible to create a lisp for printing a specific layout (user imput to specify the layout) to pdf (user imput to name the pdf) + create a mail with the pdf as attachement?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reactions.&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 08:22:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8835773#M87811</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-06T08:22:02Z</dc:date>
    </item>
    <item>
      <title>Betreff: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8835789#M87812</link>
      <description>&lt;P&gt;If a mail program is available with a valid mail account access and activeX API (Outlook for example) , no problem.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 08:35:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8835789#M87812</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-06T08:35:36Z</dc:date>
    </item>
    <item>
      <title>Betreff: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8836333#M87813</link>
      <description>&lt;P&gt;Thanks for your reaction. I do use outlook for my mailing, so that's already good.&lt;/P&gt;&lt;P&gt;Could you (or anyone)&amp;nbsp;help me getting started with this? Or do you know where i could find some explanation for these steps? Because this kind of lisp writing would be totally new for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 13:17:22 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8836333#M87813</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-06T13:17:22Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8836605#M87814</link>
      <description>&lt;P&gt;Code &lt;A href="http://www.theswamp.org/index.php?topic=26953.msg324794#msg324794" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;HERE&lt;/STRONG&gt;&lt;/A&gt; to create&amp;nbsp; an outlook message and attach files to send. Not sure if it still works since it's 10 years old!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 06 Jun 2019 14:57:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8836605#M87814</guid>
      <dc:creator>ronjonp</dc:creator>
      <dc:date>2019-06-06T14:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8854676#M87815</link>
      <description>&lt;P&gt;I have been looking to create this step by step, so first i want to print my layout to pdf (and save it automatic to the location of the dwg). And after i will try&amp;nbsp;to create my mail. This i what i got so far, but it doesn't work (its says: malformed list on input?) Any help?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(defun c:PRINTTOPDF&amp;nbsp;(/)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(command "tilemode" "0")&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(command "-plot" "yes" "plan_A_1" "Dwg To PDF.pc3" "Previous paper size (841.00 x 594.00 mm)" "Milimeters"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"Landscape" "No" "layout" "1:1" "0.00,0.00" "Yes" "LEGPLAN.ctb" "Yes" "No" "No" "No"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(princ)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 06:40:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8854676#M87815</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-17T06:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8855117#M87816</link>
      <description>&lt;P&gt;This has notrhing to do with programming and 'send a mail', so next time please:&lt;/P&gt;
&lt;P&gt;Different problems, different topics (seperates threads).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Without your file and enviroment we have to guess, that need more time as reading facts (your DWG).&lt;/P&gt;
&lt;P&gt;Help for help yourself:&lt;/P&gt;
&lt;P&gt;Set CMDDIA to 0 and run your &lt;EM&gt;PRINTTOPDF&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;You can see where the problem is in your log [F2]&lt;/P&gt;
&lt;P&gt;Copy the part from Command:&lt;EM&gt;PRINTTOPDF&lt;/EM&gt; to the end in your next answer and we are also able to see the result,&lt;/P&gt;
&lt;P&gt;perhaps we can see and help to solve the problem then.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;But i will try it with guessing:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(command "-plot" "yes" "plan_A_1" "Dwg To PDF.pc3" "&lt;FONT color="#800080"&gt;Previous paper size (841.00 x 594.00 mm)&lt;/FONT&gt;" "Mil&lt;FONT size="4" color="#FF0000"&gt;l&lt;/FONT&gt;imeters"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"Landscape" "No" "layout" "1:1" "0.00,0.00" "Yes" "LEGPLAN.ctb" "Yes" "No" "No" "No" &lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;1. Where is you closing bracket of the command statement?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;2. Is "Milimeters" the right word?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;3. Is "&lt;FONT color="#800080"&gt;Previous paper size (841.00 x 594.00 mm)&lt;/FONT&gt;" really a valid input for your pagesetup at time you try to start the plot?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Jun 2019 11:43:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8855117#M87816</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-17T11:43:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8859135#M87817</link>
      <description>&lt;P&gt;Do a search here there is email a file from Autocad.&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 03:26:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8859135#M87817</guid>
      <dc:creator>Sea-Haven</dc:creator>
      <dc:date>2019-06-19T03:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8860573#M87818</link>
      <description>&lt;P&gt;Thanks for your reply. (ok, i will separate these different topics in the future)&lt;/P&gt;&lt;P&gt;I tried to run it with a correction of (mil&lt;FONT color="#ff0000"&gt;l&lt;/FONT&gt;imeters =&amp;gt; my mistake indeed), and even tried to change my paper size to ISO full bleed A1 (841.00 x 594.00 mm) but it keeps giving the same error. (malformed list on input)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure what i am doing wrong?&lt;/P&gt;&lt;P&gt;i've uploaded my dwg and lisp file. I hope someone can help me fix this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 14:57:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8860573#M87818</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-19T14:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8860644#M87819</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/71745"&gt;@cadffm&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;&lt;EM&gt;(command "-plot" "yes" "plan_A_1" "Dwg To PDF.pc3" "&lt;FONT color="#800080"&gt;Previous paper size (841.00 x 594.00 mm)&lt;/FONT&gt;" "Mil&lt;FONT size="4" color="#FF0000"&gt;l&lt;/FONT&gt;imeters"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"Landscape" "No" "layout" "1:1" "0.00,0.00" "Yes" "LEGPLAN.ctb" "Yes" "No" "No" "No" &lt;FONT size="4" color="#FF0000"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;1. Where is you closing bracket of the command statement?&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Where is the closing bracket for your DEFUN statement?&lt;/P&gt;
&lt;P&gt;Add one ) at the end..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun ; open ONE&lt;/P&gt;
&lt;P&gt;c:PRINTTOPDF (/) ; open a second and close the second bracket, so you have still one bracket from defun open&lt;/P&gt;
&lt;P&gt;(command "-plot" "yes" "plan_A_1" "Dwg To PDF.pc3" "ISO full bleed A1 ; open a second&lt;/P&gt;
&lt;P&gt;(841.00 x 594.00 mm)" "Millimeters" ; open and close a third&lt;BR /&gt;"Landscape" "No" "layout" "1:1" "0.00,0.00" "Yes" "legplan.ctb" "Yes" "No" "No" "No" ) ; close the second from command statement.&lt;/P&gt;
&lt;P&gt;(princ) ; open and close a second&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;there is still missing the closing bracket of your DEFUN statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 19 Jun 2019 15:20:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8860644#M87819</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-19T15:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8861970#M87820</link>
      <description>&lt;P&gt;Thanks, it now uploads without any problems!&lt;/P&gt;&lt;P&gt;Only, the function doesn't work : "invalid option keyword"&lt;/P&gt;&lt;P&gt;However, i followed the steps (with keywords) manually in autocad first, before i created the lisp. So i'm not seeing the troubles?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've copied the problems in my log (F2)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Command: CMDDIA&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Enter new value for CMDDIA &amp;lt;0&amp;gt;: 1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;**** No System Variable Changed ****&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command: Specify opposite corner or [Fence/WPolygon/CPolygon]:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command: PRINTTOPDF&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;-plot Detailed plot configuration? [Yes/No] &amp;lt;No&amp;gt;: yes&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Enter a layout name or [?] &amp;lt;plan_A_1&amp;gt;: plan_A_1 Enter an output device name or [?] &amp;lt;HP Designjet T7200ps HPGL2&amp;gt;: Dwg To PDF.pc3 Enter paper size or [?] &amp;lt;ISO A1 (594.00 x 841.00 MM)&amp;gt;: ISO full bleed A1 ; open a second&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(841.00 x 594.00 mm)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command: Millimeters Unknown command "MILLIMETERS".&amp;nbsp; Press F1 for help.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command: Landscape Unknown command "LANDSCAPE".&amp;nbsp; Press F1 for help.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command: No Unknown command "NO".&amp;nbsp; Press F1 for help.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Command: layout&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Enter layout option [Copy/Delete/New/Template/Rename/SAveas/Set/?] &amp;lt;set&amp;gt;: 1:1&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Invalid option keyword.&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;; error: Function cancelled&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 06:22:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8861970#M87820</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-20T06:22:15Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8862017#M87821</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5963921"&gt;@larsr2866&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;...&lt;BR /&gt;So i'm not seeing the troubles?
&lt;P class="1561012914498"&gt;&amp;nbsp;&lt;/P&gt;
...&lt;BR /&gt;
&lt;P&gt;&lt;EM&gt;Enter paper size or [?] &amp;lt;ISO A1 (594.00 x 841.00 MM)&amp;gt;: ISO full bleed A1 ; open a second&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;(841.00 x 594.00 mm)&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;Command: Millimeters&lt;/STRONG&gt; Unknown command "MILLIMETERS".&amp;nbsp; Press F1 for help.&amp;nbsp; &lt;FONT size="5" color="#FF0000"&gt;&lt;STRONG&gt;&amp;lt;----&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;After your input for the papersize the PLOT command is terminated and no command is active.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The message "Only, the function doesn't work : "invalid option keyword"" is not the problem, it is just a subsequent error because you started the LAYOUT command..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See twice, take enough time and you will reach the goal.&lt;/P&gt;
&lt;P&gt;In in LOG i can see some of my hints/comments..i thought you should start new.&lt;/P&gt;
&lt;P&gt;Use a new DWG with simple content/layout,&lt;/P&gt;
&lt;P&gt;check your lisp and because you write the command in this way because you can add comments easier and it is more readable.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(command "_.-PLOT" ; plot sequence of a layout&lt;/P&gt;
&lt;P&gt;"_yes" ; detailed version&lt;BR /&gt;"plan_A_1"; layoutname&lt;BR /&gt;"Dwg To PDF.pc3" ; plotter&lt;BR /&gt;"ISO full bleed A1 (841.00 x 594.00 mm)" ; papersize&lt;BR /&gt;"_millimeters" ; and so on..&lt;BR /&gt;"_landscape"&lt;BR /&gt;"_no"&lt;BR /&gt;"_layout"&lt;BR /&gt;"1:1"&lt;BR /&gt;"0.00,0.00"&lt;BR /&gt;"_yes"&lt;BR /&gt;"legplan.ctb"&lt;BR /&gt;"_yes"&lt;BR /&gt;"_no"&lt;BR /&gt;"_no"&lt;BR /&gt;"_no"&lt;BR /&gt;);_command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Id didn't check this 1:1, if you are stil in trouble i will do it the next time.&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 06:48:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8862017#M87821</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-20T06:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8862225#M87822</link>
      <description>&lt;P&gt;Thanks it works!&lt;/P&gt;&lt;P&gt;Except for the saving location. I doesn't save it on the dwg location, but the last history location.&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 09:08:38 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8862225#M87822</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-20T09:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8862269#M87823</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/5963921"&gt;@larsr2866&lt;/a&gt;&amp;nbsp; schrieb:&lt;BR /&gt;
&lt;P&gt;Thanks it works!&lt;/P&gt;
&lt;P&gt;Except for the saving location. I doesn't save it on the dwg location, but the last history location.&lt;/P&gt;
&lt;P&gt;Is this possible?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Sorry, i don't understand.&amp;nbsp; You you like the current DWG location, or not?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your lisp above do not create a PDF, no where!&lt;/P&gt;
&lt;P&gt;If you like to create the pdf you have to add the filename, if saving the plotsettings as current pageseup and if you really want to plot &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So you have to add 3 arguments more at the end of command&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(if (zerop(getvar"DWGTITLED")) "~" (strcat "C:\\Temp\\" (vl-filename-base(getvar "DWGNAME"))))&lt;BR /&gt;"_no"&lt;BR /&gt;"_yes"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or for the current DWG folder&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(if (zerop(getvar"DWGTITLED")) "~" "")&lt;BR /&gt;"_no"&lt;BR /&gt;"_yes"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 09:41:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8862269#M87823</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-20T09:41:12Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8863060#M87824</link>
      <description>&lt;P&gt;Wow thanks, i'm learning &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is indeed the intension to save the pdf at the current dwg-location so i used this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(if (zerop(getvar"DWGTITLED")) "~" "")&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"_no"&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;"_yes"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is it possible to create a user input for typing my pdf-name? I guess i have to replace "DWGTITLED" to "userinput"?&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 15:00:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8863060#M87824</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-20T15:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8863137#M87825</link>
      <description>&lt;P&gt;&lt;EM&gt;(if (zerop(getvar"DWGTITLED")) "~" "")&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt; I guess i have to replace "DWGTITLED" to "userinput"?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;Please open &lt;A href="http://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-916F1A5C-FD70-4D66-897E-6DCD666DCB39" target="_blank" rel="noopener"&gt;your help[F1] and read about &lt;STRONG&gt;if (AutoLISP)&lt;/STRONG&gt; &lt;/A&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;and &lt;A href="http://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-1CA841EC-0313-4A34-8829-0CC0B5FB6FEE" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;DWGTITLED (System Variable)&lt;/STRONG&gt;&lt;/A&gt; and &lt;A href="http://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-3D509EE1-A809-4B78-915C-28ECF483BB72" target="_blank" rel="noopener"&gt;ZEROP&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;H1 style="font-family: 'Artifakt Legend', Arial, Helvetica, sans-serif; font-size: 21px; font-weight: 400; line-height: 1.5; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #c2c2c2; margin: 0px 0px 1em; padding: 0px 0px 12px; color: #333333; font-style: normal; font-variant: normal; letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&amp;nbsp;&lt;/H1&gt;
&lt;P&gt;Replace&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;(if (zerop(getvar"DWGTITLED")) "~" "")&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;with&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;"~"&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;or you have to write more code.. and y&lt;/EM&gt;ou are searching for &lt;A href="http://help.autodesk.com/view/ACD/2020/ENU/?guid=GUID-B139EFBD-74B7-4276-B422-D2186F7D8D0A" target="_blank" rel="noopener"&gt;&lt;STRONG&gt;getstring (AutoLisp)&lt;/STRONG&gt;&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;this is just a (too) simple testcode:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;(if (zerop(getvar"DWGTITLED"))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; "~"&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (strcat (getvar "DWGPREFIX")(progn(while (= "" (setq FN (vl-filename-base (getstring T "PDF Filename: "))))) FN) ".pdf")&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;but you have to add security-check for valid filenames and a smarter (= "" test.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 20 Jun 2019 15:31:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8863137#M87825</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-20T15:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8864272#M87826</link>
      <description>&lt;P&gt;Thank you so much! you're great!&lt;/P&gt;&lt;P&gt;Good to know that "~" is for user input!&lt;/P&gt;&lt;P&gt;It works like a charm!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm will now try to find out how to create a mail within autocad &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greets,&lt;/P&gt;&lt;P&gt;Lars&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 06:09:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8864272#M87826</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-21T06:09:57Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8864345#M87827</link>
      <description>&lt;P&gt;&lt;SPAN&gt;that "~" is for user input!&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;This input at this position is NOT for USERINPUT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;At this time the plot command is asking for filename..&lt;/P&gt;
&lt;P&gt;Plot command started by hand will open the 'select file dialog'as dialogwindow or as commandlineversion, depending on FileDia setting.&lt;/P&gt;
&lt;P&gt;Plot dialog started by (command) will use the commandlineversion by default.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"~" is the input to change from commandline to dialogwindow version.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also replace it with "c://temp//funnyname.pdf" if you like to have this location and name for the pdf &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Or just&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PAUSE&lt;/P&gt;
&lt;P&gt;Pause stand for Userinput.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 06:59:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8864345#M87827</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-21T06:59:32Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8870319#M87828</link>
      <description>&lt;P&gt;For sending a&amp;nbsp;mail into autocad, &amp;nbsp;i have tried the link from rperez, but i think i doesn't work anymore.&lt;/P&gt;&lt;P&gt;It says&amp;nbsp; "error: no function definition: RJP-Outlookmessage". Does anyone know something else? Because this is a bit out of my knowledge &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;(defun c:mail (/)&lt;/P&gt;&lt;P&gt;;;Usage&lt;BR /&gt;(rjp-OutlookMessage&lt;BR /&gt;&amp;nbsp; ;;email address (multiple separated by semicolon)&lt;BR /&gt;&amp;nbsp; "test@nowhere.com;test2@nowhere.com"&lt;BR /&gt;&amp;nbsp; ;;Subject&lt;BR /&gt;&amp;nbsp; "Test Email"&lt;BR /&gt;&amp;nbsp; ;;Attachments as a list of strings&lt;BR /&gt;&amp;nbsp; '("C:\\Users\\Desktop\\001.jpg" )&lt;BR /&gt;&amp;nbsp; ;;Text in body of email&lt;BR /&gt;&amp;nbsp; "Nothing to read here :)"&lt;BR /&gt;&amp;nbsp; ;;nil will open email to edit...T will send email in the background&lt;BR /&gt;&amp;nbsp; nil&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;(defun rjp-OutlookMessage&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (To Subject AttachmentList Body Send / objMail objOL)&lt;BR /&gt;&amp;nbsp; (if (and (setq objOL (vlax-get-or-create-object "Outlook.Application"))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (setq objMail (vlax-invoke-method objOL 'CreateItem 0))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (progn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-put objMail 'To To)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-put objMail 'Subject Subject)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-put objMail 'Body Body)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (foreach file AttachmentList&lt;BR /&gt;&amp;nbsp;(vl-catch-all-apply&lt;BR /&gt;&amp;nbsp;&amp;nbsp; 'vlax-invoke&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (list&amp;nbsp;(vlax-get objMail 'Attachments)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;'Add&lt;BR /&gt;&amp;nbsp;&amp;nbsp;file&lt;BR /&gt;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if send&lt;BR /&gt;&amp;nbsp;(vlax-invoke objMail 'Send)&lt;BR /&gt;&amp;nbsp;(vlax-invoke objMail 'Display :vlax-true)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-release-object objOL)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-release-object objMail)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; )&lt;BR /&gt;&amp;nbsp; (princ)&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 09:15:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8870319#M87828</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-25T09:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8870339#M87829</link>
      <description>&lt;P&gt;As the message said: Where is the RJP-Outlookmessage function defined? it isn't loaded - your fail.&lt;/P&gt;
&lt;P&gt;This function is available at the same place - follow rperez link again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(defun RJP-Outlookmessage&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 09:27:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8870339#M87829</guid>
      <dc:creator>cadffm</dc:creator>
      <dc:date>2019-06-25T09:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Lisp to create pdf and send mail</title>
      <link>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8875829#M87830</link>
      <description>&lt;P&gt;Thanks, i got this working. Only problem, it worked once (i have to restart my computer to get this working another time) How is this possible?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also noticed that it has some issues with the tekst formatting (color, size, mail-signature with logo,...)&lt;/P&gt;&lt;P&gt;I was wondering if this could be fixed with a standard mail template, that opens with autocadlisp?&lt;/P&gt;&lt;P&gt;So i made a template&amp;nbsp;for my standard mail in outlook called &amp;nbsp;"standardmail.oft"&lt;/P&gt;&lt;P&gt;Could it be possible to open this in autocad?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Only poblem i see is that it should automatically attach my created pdf (and subject name of the mail should be the same as my pdf name) hmmm, i think i'm stuck with this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;;; Usage:&lt;BR /&gt;; (rjp-OutlookMessage&lt;BR /&gt;;&amp;nbsp; "test@nowhere.com;test2@nowhere.com"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;; email address (multiple separated by semicolon)&lt;BR /&gt;;&amp;nbsp; "Test Email"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;; Subject&lt;BR /&gt;;&amp;nbsp; '("C:\\test\\file1.txt" "C:\\test\\file2.txt" "C:\\test\\file3.txt")&amp;nbsp; ;; Attachments as a list of strings&lt;BR /&gt;;&amp;nbsp; "Nothing to read here :)"&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;; Text in body of email&lt;BR /&gt;;&amp;nbsp; nil&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ;; nil will open email to edit...T will send email in the background&lt;BR /&gt;; )&lt;BR /&gt;(defun rjp-OutlookMessage (To Subject AttachmentList Body Send / objMail objOL)&lt;BR /&gt;&amp;nbsp;(and&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (setq objOL (vlax-get-or-create-object "Outlook.Application"))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (setq objMail (vlax-invoke-method objOL 'CreateItem 0))&lt;BR /&gt;&amp;nbsp;&amp;nbsp; (progn&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-put objMail 'To To)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-put objMail 'Subject Subject)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-put objMail 'Body Body)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (foreach file AttachmentList (vl-catch-all-apply 'vlax-invoke (list (vlax-get objMail 'Attachments) 'Add file)) )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (if send (vlax-invoke objMail 'Send) (vlax-invoke objMail 'Display :vlax-true) )&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-release-object objOL)&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (vlax-release-object objMail)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ); progn&lt;BR /&gt;&amp;nbsp;); and&lt;BR /&gt;&amp;nbsp;(princ)&lt;BR /&gt;); defun rjp-OutlookMessage&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jun 2019 09:13:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/lisp-to-create-pdf-and-send-mail/m-p/8875829#M87830</guid>
      <dc:creator>larsr2866</dc:creator>
      <dc:date>2019-06-27T09:13:51Z</dc:date>
    </item>
  </channel>
</rss>

