Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: cEmail and cSMTP cannot send Date: Sun, 17 Feb 2019 11:35:45 +0100 Lines: 66 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net GrLsX9B95j2JtpA2P8OxOwfY62A5YuqNq5W6EVJD6gCextFz0= Cancel-Lock: sha1:S+3o9GZaeqK1IBe1AVs1lHVZCEs= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:12282 Hi Jeff, X# IS a solution. I have written a COM library in X# that can be used from VO via COM, even without registration, using SxS mechanisms: https://www.riedmann.it/download/SendMailCOM.zip More samples on X# are here: https://www.riedmann.it/verschiedenes_xsharp.php Wolfgang P.S. most of my VO applications are using at least one COM module written in X# Jeff Rollo wrote: > I'm sorry to be "flooding", but I guess VO is so old, online help is > extremely hard to find, and even then 99% of the links are no longer > available, so please believe me when I say, I search long and hard > before annoying you guys... > > What am I doing wrong here please? > > METHOD PushButton1( ) CLASS NewWindow1 > local oEmail as CEmail > LOCAL oSmtp as CSmtp > Local lRet as Logic > //SetExact(false) > oEmail := CEmail{} > oSmtp := CSmtp{} > //oEmail:CreateHtml("Here") > oEmail:ReplyTo := "info@lightningpc.com.au" > oEmail:AddAttachment("C:\cavo28\bin\JobNumber.rpt") > //oEmail:DestList := "jeff@lightningpc.com.au" > oEmail:FromAddress := "jeff@lightningpc.com.au" > oEmail:MailBody := "Geachte, Als bijlage vindt U de > kadasterlijsten van het1e kwartaal, Hoogachtend" oEmail:CCList :="" > oEmail:Subject :="Test Email" > oSmtp := CSmtp{oEmail} > oSmtp:remotehost := "mail.mywork.com.au" > // oSmtp:SecureSMTP := .t. > > // oSmtp:TimeOut := 5000 > ??oSmtp:connect("mail.mywork.com.au", 587) <- gives me the > correct IP for the email server oSmtp:UserName := "" <- removed > for obvious reasons... oSmtp:PassWord := "" <- removed for > obvious reasons... > ?? oSmtp:Logon() <- returns TRUE, so Port, Username and password > I'm assuming can't be the problem... > > // oSmtp:Email := oEmail > lRet := oSmtp:SendMail() > ?? lRet > //SetExact(true) > RETURN lRet --