CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]
CZ | EN | DE
Login or
registration
  Visitors: 7442

CAD tip CAD tip # 13884:

   
Question CAD 
 %  platform  category 
Q - question

How to send e-mails with an iLogic macro?

A - answer Using a simple rule in the iLogic code, you can send (or just prepare to send) any e-mail in your Microsoft Outlook from your Autodesk Inventor 3D design.

Example of an e-mail macro:

oOlApp = CreateObject("Outlook.Application")
oOlMail = oOlApp.CreateItem(0)

strbody = "<‍p style='font-family:calibri;font-size:16'>" & "Howdy," & "<‍br><‍br>" & vbNewLine & vbNewLine & _
	"I'm contacting you regarding the part " + iProperties.Value("Project", "Part Number") & "<‍/p>" & vbNewLine
			   
With oOlMail
    .bodyformat=2
    .To = "vladimir.michl@arkance-systems.com"
    .CC = ""
    .BCC = ""
    .Subject = "iLogic mail - sample"
    .HTMLbody = strbody
    '.Attachments.Add (FilePath & "\" & File & ".jpg")
    '.Display 
	.Send ' or just Display
End With
Inventor
100% *  CAD 
10.10.2023    50161×  
Prices - CAD eShop:
applies to: Inventor ·

See also:
Tip 13963:Sum of pipe element lengths in Inventor (iLogic).
Tip 13611:BOM with multi-line items in Inventor.
Tip 13211:Automatic numbering/renaming of multi-volume bodies in a part.
Tip 13197:How to transfer a model or sketch parameter to iProperties?
Tip 12644:How to identify parts and assemblies imported from STEP/IGES?


Back   All CAD Tips



Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Extend your AutoCAD LT productivity with our popular add-on
CADstudio LT Extension More info


Please use these tips at your own risk.
Arkance Systems is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist