I am having an problem with Outlook 98. I am creating in VB an email message with an attachment. However I do not fill the SenderName property. I do'nt know how to since it is a read only property. I get an error from outlook which says something like "someone is trying to send an email. Could be a virus. are you sure"
I wanted to find out how I can fill the sendername value even if Outlook is not open and also do a name resolution in Outlook.
Appreciate all the help
Here is a sample code
I am using the Outlook 98 object reference
Dim objOutlook As New Outlook.Application
Dim objOutlookMsg As Outlook.MailItem
If Len(txtemail) > 0 Then
'Create a message.
Set objOutlookMsg = objOutlook.CreateItem(olMailItem)
.To = txtemail.Text
.Subject = "Request for Quotation"
.Body = "Dear " & txtAttention & vbNewLine & vbNewLine
.Body = .Body & "Please quote price and delivery for the following parts" & vbNewLine
.Body = .Body & "in the attached EXCEL spreadsheet and return" & vbNewLine
.Body = .Body & " THANK YOU" & vbNewLine
.Importance = olImportanceHigh
Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.
There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…