Solid Edge How to send mail to recipient ?

2021-10-06T23:56:37Z
PART/SHEETMETAL

Summary


Details

How to send mail to recipient ?

Solution

User can send email to recipient by application (application.SendMailToRecipient()) API. For example:

Option Infer On


Imports System
Imports System.Runtime.InteropServices


Namespace Examples
    Friend Class Program
        <STAThread>
        Shared Sub Main(ByVal args() As String)
            Dim application As RevisionManager.Application = Nothing


            Try
                application = New RevisionManager.Application()
                application.Visible = 1


                Dim bstrInputFileName = "C:\Asm1.asm"
                Dim bstrInputFilePassword As String = Nothing
                Dim recipientAddress As String = Nothing
                Dim bAttachment = 1
                Dim bstrPCFFilePathTobeCreated As String = Nothing
                Dim bRemoveGeometry = 0
                Dim pcfFilePermission = Nothing
                Dim bstrPCFFilePassword As String = Nothing
                Dim bstrSubject As String = Nothing
                Dim bstrMessageBody As String = Nothing


                application.SendMailToRecipient(bstrInputFileName, bstrInputFilePassword, recipientAddress, bAttachment, bstrPCFFilePathTobeCreated, bRemoveGeometry, pcfFilePermission, bstrPCFFilePassword, bstrSubject, bstrMessageBody)


            Catch ex As System.Exception
                Console.WriteLine(ex)
            End Try
        End Sub
    End Class
End Namespace

Hardware/Software Configuration

Platform: AMD64
OS: windows
OS Version: 764
Product: SOLID_EDGE
Application: AUTOMATION
Version: V219MP9
Function: API_DOCUMENT

Ref: 002-8016513

KB Article ID# PL8016513

Contents

SummaryDetails

Associated Components

PART/SHEETMETAL: FEATURES