en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en en nl en en en en en en cs en en en en en en en en en en en en en en en en de en en en en de en en en en en nl en en en de de en en en en en en en en de en en en fr en en en en en en en en en pt en en en en en en
By logging into your account, you agree to our Privacy Policy, personal data processing and storage practices as described therein.
Forgot password or user name?
Search in titles only Search in PowerBASIC Console Compiler only
You are not logged in. You can browse in the PowerBASIC Community, but you must click Login (top right) before you can post. If this is your first visit, check out the FAQ or Sign Up.
How to use Microsoft's CDOSYS Mail DLL
All Time Today Last Week Last Month
All Discussions only Photos only Videos only Links only Polls only Events only
Join Date: Mar 2004
How to use Microsoft's CDOSYS Mail DLL
4 May 2009, 05:40 PM
I need to use Microsoft's CDO mail library cdosys.dll. I've successfully used PBCCs TCP PRINT functions for other clients, but it fails for one and we can't seem to find the problem.
The following code works in VB6 (with different account info), but I do not know how to convert it to work in PBCC.
Set ObjSendMail = CreateObject("CDO.Message")
'This section provides the configuration information for the remote SMTP server.
ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 'Send the message using the network (SMTP over the network).
ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpusessl") = False 'Use SSL for the connection (True or False)
ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1 'basic (clear-text) authentication
'End remote SMTP server configuration section==
ObjSendMail.To = "[email protected]"
ObjSendMail.Subject = "This is the subject"
ObjSendMail.From = "[email protected]"
ObjSendMail.TextBody = "This is the body"
I hope someone might know how to convert this code to PBCC.
Join Date: Mar 2004
4 May 2009, 05:56 PM
See the following threads in my forum:
They use my include files, available to registered members at:
If you aren't going to use them, you will need to build includes files using a COM browser for CdoSys and ADO, and adapt the code accordingly.
Copyright © 1998-2022 PowerBASIC Tools, LLC - All Rights Reserved.
Powered by vBulletin® Version 5.7.0
Copyright © 2022 vBulletin Solutions, Inc. All rights reserved.
All times are GMT-5. This page was generated at 09:57 PM.
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, and to analyze site activity. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.