Send to mail problem- Urgent

The PDF Creator enables you to create secure PDF documents and to view, print and process existing PDF documents.
If you have any questions about the installation and usage of the PDF Creator please post them here.
Post Reply
systweakamol
Posts: 16
Joined: Fri Sep 09 2005
Contact:

Send to mail problem- Urgent

Post by systweakamol »

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.
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

The SendMail function is supposed to work with both Outlook and Outlook Express and any other Mapi mail application.

Is OutlookExpress installed on the same system where you tried to use the SendMail function with Outlook?

Which version of CDIntf and the PDF Converter are you using?
systweakamol
Posts: 16
Joined: Fri Sep 09 2005
Contact:

Version 2.5.0.4

Post by systweakamol »

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.
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

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?
systweakamol
Posts: 16
Joined: Fri Sep 09 2005
Contact:

not solved

Post by systweakamol »

i replace the code but still the problem exists
pdf:= CreateOleObject('CdintfEx.CdintfEx');
Pdf.SendMail('','','',StrMailSubject,StrMailBody,StrsaveFileName+';'+ ExtractFileName(StrsaveFileName),2);
Joan
Amyuni Team
Posts: 2799
Joined: Wed Sep 11 2002
Contact:

Post by Joan »

Hello,

Did you try this code on a machine that has Outlook Express only?

Thanks.
systweakamol
Posts: 16
Joined: Fri Sep 09 2005
Contact:

yes

Post by systweakamol »

I have tested it on machine with only outlook express but still the problem is there....

Is it a bug? :oops:
Jose
Amyuni Team
Posts: 553
Joined: Tue Oct 01 2002
Contact:

Post by Jose »

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?
Post Reply