I am using the send mail feature of CdintfEx and writting this code:
pdf:= CreateOleObject('CdintfEx.CdintfEx');
CDIntfEx1.SendMail('','','','PDF Attachment','Send PDF Attached',StrsaveFileName+';'+ ExtractFileName(StrsaveFileName),2);
The problem that i am facing is that, it works fine with Ms outlook as my default mail browser but whe Outlook Express is my default browser than it opens the compose window and hangs( no button can be clicked).
Please give me the solution.
Send to mail problem- Urgent
-
- Posts: 16
- Joined: Fri Sep 09 2005
- Contact:
-
- Posts: 16
- Joined: Fri Sep 09 2005
- Contact:
Version 2.5.0.4
I am using version 2.5.0.4 and yes outlook express is installed and configured on the pc. I have tested it on 3 pc and the result is same.
Hello,
There are a couple of things you need to clarify.
1- In the code snippet you provided you are creating an object called pdf but you are actually using the sendmail function of the CDIntfEx1. Can you verify if modifying these objects has an effect on your issue?
2- Since I am unable to reproduce this situation, I have provided below a vbs script which I suggest you try to run on your outlook express systems? On our test systems here this functioned correctly.
'Copy to text file and save with .vbs extension
'====>8========
dim pdf
set pdf= CreateObject("CdintfEx.CdintfEx")
pdf.SendMail "", "", "", "Test", "A PDF has been attached", "c:\temp\sample.pdf;test.pdf", 2
set pdf = nothing
'====8<========
Hope this helps?
There are a couple of things you need to clarify.
1- In the code snippet you provided you are creating an object called pdf but you are actually using the sendmail function of the CDIntfEx1. Can you verify if modifying these objects has an effect on your issue?
2- Since I am unable to reproduce this situation, I have provided below a vbs script which I suggest you try to run on your outlook express systems? On our test systems here this functioned correctly.
'Copy to text file and save with .vbs extension
'====>8========
dim pdf
set pdf= CreateObject("CdintfEx.CdintfEx")
pdf.SendMail "", "", "", "Test", "A PDF has been attached", "c:\temp\sample.pdf;test.pdf", 2
set pdf = nothing
'====8<========
Hope this helps?
-
- Posts: 16
- Joined: Fri Sep 09 2005
- Contact:
not solved
i replace the code but still the problem exists
pdf:= CreateOleObject('CdintfEx.CdintfEx');
Pdf.SendMail('','','',StrMailSubject,StrMailBody,StrsaveFileName+';'+ ExtractFileName(StrsaveFileName),2);
pdf:= CreateOleObject('CdintfEx.CdintfEx');
Pdf.SendMail('','','',StrMailSubject,StrMailBody,StrsaveFileName+';'+ ExtractFileName(StrsaveFileName),2);
-
- Posts: 16
- Joined: Fri Sep 09 2005
- Contact:
yes
I have tested it on machine with only outlook express but still the problem is there....
Is it a bug?
Is it a bug?
Hello,
In order to determine a possible source of your issue, I have attached a vbs script which does not use the PDF Converter to send email attachments.
Can you verify if you can run in on your test PCs
'Copy to text file and save with .vbs extension
'====>8========
SendMail
sub SendMail()
dim myOLApp
dim mOLItem
set myOLApp=CreateObject("Outlook.Application")
Set myOLItem = myOLApp.CreateItem(olMailItem)
With myOLItem
.To = "foo@bar.com"
.Subject = "Enter mail subject here"
.Attach = "c:\temp\sample.pdf"
.Body = "Enter the mail body text here"
End With
myOLItem.Send
end sub
'====8<========
Hope this help?
In order to determine a possible source of your issue, I have attached a vbs script which does not use the PDF Converter to send email attachments.
Can you verify if you can run in on your test PCs
'Copy to text file and save with .vbs extension
'====>8========
SendMail
sub SendMail()
dim myOLApp
dim mOLItem
set myOLApp=CreateObject("Outlook.Application")
Set myOLItem = myOLApp.CreateItem(olMailItem)
With myOLItem
.To = "foo@bar.com"
.Subject = "Enter mail subject here"
.Attach = "c:\temp\sample.pdf"
.Body = "Enter the mail body text here"
End With
myOLItem.Send
end sub
'====8<========
Hope this help?