Can i send email using a macro in solidWorks?

I am trying to send an email with the results from a macro.

The macro just gets the length,width and heoght of the part (bounding box).

Can it then send that as an email to a person ?

SolidworksApi macros
Answers 6
AT
AT 2013-03-21 Best Answer

SolidWorks API hasn’t any e-mail sending functions. However you can easily operate the VBA/Win API functions. Here is the sample:

http://www.cpearson.com/excel/Email.aspx

__________________________

Regards,

Artem Taturevych

Application Engineer at Intercad

http://intercad.com.au/

Tel: +61 2 9454 4444

DG
DG 2013-03-22

Here is one I did. Modify as per your need.

Send Email via SolidWorks : Macro to send email with assembly name in subject.

SF
SF 2013-03-22

Hi Deepak..

I appreciate your input on this....It would be awesome if the macro sent the email. I am trying to automate this feature in the EPDM workflow.

So basically this is what I am trying to do,

When a part gets through a transition in EPDM the "overall size" macro will run and send an email with the dimensions in the body of the email.

Maybe there is an easier way to do this ?

SF
SF 2013-03-22

Thanks for the input Artem.

DS
DS 2013-03-27

Please take a look at this.....

My software automatically creates and sends the email to one or more people by using a macro.

http://www.slideshare.net/isocam/mechtools-for-autodesk-inventor

At present it works in Inventor however I am planning to release it for Solidworks.

Please let me know what you think, and will it be of any use to you???

Regards

Darren

JC
JC 2013-04-11

here is a DLL just add it and then call

sendmail.mail.Emails(ToEmail).SendMail(SmtpMailLocation, fromEmail, EmailBody,  Subject, MailPriority.Normal)