Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Foxypreviewer CDO fails

Status
Not open for further replies.

wbstrider

Programmer
Mar 2, 2001
78
US
Awesome program. However, when I use - REPORT FORM tmp5 OBJECT TYPE 10 TO FILE "d:\trash\tmp5.pdf", then send by creating the object ie:eek:MSG = CREATEOBJECT("CDO.Message") and the setting for the object...user,password,email,attachment etc. it works!
If I use the previewer configuration, putting in the smtp settings, then click send in email it always fails. Wondering if this has happened to anyone else? Code below works, print to email from previewer will not work. Thought maybe someone ran across it

oMSG = CREATEOBJECT("CDO.Message")
oMSG.To = m.lcemail
oMSG.From = m.lcfrom
oMSG.Subject = m.lcsubject
oMSG.TextBody = "Test sending PDF as an attachment"
oMSG.AddAttachment(m.lcpdfname)
oMSG.Configuration.Fields.Item(" = 2
oMSG.Configuration.Fields.Item(" = "mail.myserver.com"
oMSG.Configuration.Fields.Item(" = 25
oMSG.Configuration.Fields.Item(" = 20
oMSG.Configuration.Fields.Item(" = .f.
oMSG.Configuration.Fields.Item(" = m.lcfrom
oMSG.Configuration.Fields.Item(" ="mypassword"
oMSG.Configuration.Fields.Item(" = 1 && basice clear text
oMSG.Configuration.Fields.Update()
oMSG.Send()
WAIT WINDOW 'Message to '+oMSG.To+' successfully delivered' NOWAIT


One Code to rule them all, One code to bind them.
 
See on how to configure foxypreviewer.

foxypreviewer uses both CDO.Configuration and CDO.Message You only use the latter, maybe you even have insufficient privileges for CDO.configuration. What you set in CDO.Message is not really effecting CDO.configuration and this is set up correctly on your client already.

Well, foxypreviewer is open source, so why not look in yourself.

Bye, Olaf.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top