-
May 1st, 2014, 08:48 AM
#1
Thread Starter
Junior Member
[RESOLVED] Subject message not passing to outlook window from VB6.0
Hello,
I have my own mail template in vb6.0.
when i click on send button it creates a new outlook 2007 window. all information passes to it except subject message. on my local machine it is working but on client side not.
Thanks,
krunal
-
May 1st, 2014, 09:55 AM
#2
Re: Subject message not passing to outlook window from VB6.0
-
May 1st, 2014, 01:49 PM
#3
Re: Subject message not passing to outlook window from VB6.0
Are you shelling a string with the mailto format or using some mail clients object model?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum.
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it!
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6
-
May 2nd, 2014, 01:59 AM
#4
Thread Starter
Junior Member
Re: Subject message not passing to outlook window from VB6.0
I am passing all the values from my rich text box to outlook object window. all the values are passing except Subject.
Here is the function code :
Public Function SendOutLookEmail(ByVal strSender As String, _
ByVal strRecipient As String, _
ByVal strSubject As String, _
ByVal strbody As String, _
Optional ByVal strCc As String, _
Optional ByVal strBcc As String, _
Optional ByVal colAttachments As Collection _
) As Boolean
Dim OutApp As Object
Dim OutMail As Object
Dim attachment
Set OutApp = CreateObject("Outlook.Application")
OutApp.Session.Logon
Set OutMail = OutApp.CreateItem(0)
If Len(strRecipient) <> 0 Then
OutMail.To = strRecipient
Else
OutMail.To = ""
End If
If Len(strBcc) <> 0 Then
OutMail.BCC = strBcc
Else
OutMail.BCC = ""
End If
OutMail.Subject = strSubject
OutMail.HTMLBody = strbody
'OutMail.Attachments.Add (strFileName)
'If Trim(ICSFilePath & "") <> "" Then
' OutMail.Attachments.Add (ICSFilePath)
'End If
If Not colAttachments Is Nothing Then
For Each attachment In colAttachments
OutMail.Attachments.Add (attachment)
Next
End If
OutMail.Display
On Error GoTo err_msg
Set OutMail = Nothing
Set OutApp = Nothing
SendOutLookEmail = True
Exit Function
err_msg:
MsgBox err.Number & vbCrLf & "Error from Functions.SendOutLookEmail" & vbCrLf & err.Description, vbInformation, "Langserv"
SendOutLookEmail = False
On Error Resume Next
End Function
-
May 2nd, 2014, 03:00 AM
#5
Re: Subject message not passing to outlook window from VB6.0
Do that other fields get passed correctly body, to, etc to Outlook?
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
May 2nd, 2014, 03:08 AM
#6
Thread Starter
Junior Member
Re: Subject message not passing to outlook window from VB6.0
Yes,
All other information like to,cc,bcc, body text, attachments are passed correctly except Subject.
They are also using outlook 2007 same as us. but only client side is not working.
-
May 2nd, 2014, 03:24 AM
#7
Thread Starter
Junior Member
Re: Subject message not passing to outlook window from VB6.0
Hi all,
thanks a ton for you labor to look into this issue. but my client had deleted subject data from DB table. so they were not getting subject line.
Issue is resolved now.
Thank
-
May 3rd, 2014, 03:12 PM
#8
Re: Subject message not passing to outlook window from VB6.0
Another Emily Litella thread.
What is all this fuss I hear about the Supreme Court decision on a "deaf" penalty? It's terrible! Deaf people have enough problems as it is!
At least it is resolved.
-
May 3rd, 2014, 11:21 PM
#9
Re: Subject message not passing to outlook window from VB6.0
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|