Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #12265 > unrolled thread

cEmail and cSMTP cannot send

Started byJeff Rollo <jrollo64@gmail.com>
First post2019-02-15 20:15 -0800
Last post2019-02-19 23:49 +0100
Articles 20 on this page of 23 — 5 participants

Back to article view | Back to comp.lang.clipper.visual-objects


Contents

  cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-15 20:15 -0800
    Re: cEmail and cSMTP cannot send Sherlock <sherlock@sherlock.com.au> - 2019-02-16 04:52 -0800
      Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-16 04:56 -0800
        Re: cEmail and cSMTP cannot send Sherlock <sherlock@sherlock.com.au> - 2019-02-16 05:22 -0800
          Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-16 05:29 -0800
            Re: cEmail and cSMTP cannot send Sherlock <sherlock@sherlock.com.au> - 2019-02-16 05:36 -0800
              Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-16 14:50 -0800
                Re: cEmail and cSMTP cannot send Sherlock <sherlock@sherlock.com.au> - 2019-02-17 01:42 -0800
                  Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-17 02:06 -0800
                    Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-17 02:11 -0800
          Re: cEmail and cSMTP cannot send Sherlock <sherlock@sherlock.com.au> - 2019-02-16 05:31 -0800
            Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-16 05:34 -0800
              Re: cEmail and cSMTP cannot send Sherlock <sherlock@sherlock.com.au> - 2019-02-16 05:38 -0800
    Re: cEmail and cSMTP cannot send Sherlock <sherlock@sherlock.com.au> - 2019-02-16 10:09 -0800
    Re: cEmail and cSMTP cannot send "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-02-17 11:35 +0100
      Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-17 02:43 -0800
        Re: cEmail and cSMTP cannot send "Wolfgang Riedmann" <wriedmann@gmail.com> - 2019-02-18 06:37 +0100
    Re: cEmail and cSMTP cannot send Franz Rachbauer <office@rachbauer.org> - 2019-02-17 12:29 +0100
      Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-17 03:31 -0800
    Re: cEmail and cSMTP cannot send D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2019-02-18 23:58 +0100
      Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-19 02:29 -0800
        Re: cEmail and cSMTP cannot send Jeff Rollo <jrollo64@gmail.com> - 2019-02-19 02:31 -0800
        Re: cEmail and cSMTP cannot send D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2019-02-19 23:49 +0100

Page 1 of 2  [1] 2  Next page →


#12265 — cEmail and cSMTP cannot send

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-15 20:15 -0800
SubjectcEmail and cSMTP cannot send
Message-ID<faa6f7ff-e506-4c31-8d48-0d81b8887c43@googlegroups.com>
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     

[toc] | [next] | [standalone]


#12268

FromSherlock <sherlock@sherlock.com.au>
Date2019-02-16 04:52 -0800
Message-ID<e84f376a-f6f2-4a61-a6e9-a8f968a26b6a@googlegroups.com>
In reply to#12265
Jeff

It is only yet still a great product for Windows development.
Things like EMAIL SMTP works fine with SendGRID.

You should be looking at XSHARP and .NET as way forward also.

Phil

[toc] | [prev] | [next] | [standalone]


#12269

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-16 04:56 -0800
Message-ID<f5b0d9f4-197e-4f87-94cf-9ab4458e63a0@googlegroups.com>
In reply to#12268
Thanks Phil, but how does that help me with this issue atm?

[toc] | [prev] | [next] | [standalone]


#12270

FromSherlock <sherlock@sherlock.com.au>
Date2019-02-16 05:22 -0800
Message-ID<78177fce-d606-4ed2-afa2-2c3ea57f327e@googlegroups.com>
In reply to#12269
Jeff

SENDGRID for 12000 emails a month is FREE.. you have to check the latest offering. They deliver 4.5 billion a month.  Fundamentally changed how we send email and support hundreds of clients,,,  web clients and desktop / server clients.

Trying to write Apps whether VO or anything for desktop is problematic.  Google or Office 365 or their ISP or Outlook...  we have essentially dumped them all.

Enter Sendgrid.net  USER/PSS and Port 25 or 585 or 2525 and the standard VO smtp works.

Cannot ignore the future is cloud and cloud and PC windows in the cloud in AZURE of VM or Container.  

I mention XSHARP as future proof language and platform.
I still invest in Windows programming because old sold user base.. but 95% of new sales are cloud systems.


Phil

[toc] | [prev] | [next] | [standalone]


#12271

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-16 05:29 -0800
Message-ID<bf6ef6c8-1fac-47e4-a0b6-9e386bbb664d@googlegroups.com>
In reply to#12270
Phil, I wasn't soliciting advertisements, I was asking a question. Surely you're spamming this thread, though I know not why given youre a long standing contributor...

[toc] | [prev] | [next] | [standalone]


#12274

FromSherlock <sherlock@sherlock.com.au>
Date2019-02-16 05:36 -0800
Message-ID<b8900ddd-8738-4fcb-9c3d-f29d305b5ce2@googlegroups.com>
In reply to#12271
Jeff

Not spamming starting some facts.

Firstly VO is an unsupported product.. not development.. it is dead in that way.
I use it for legacy work and most systems were re-written in Delphi.

Some I still have and will be in XSHARP that journey will start this year.

If developers do not have a web strategy they have to lucky to have niche market, program for home or work on some older corporate product.

I get no commission of anybody for stating the facts of the world.
Bought 2 smaller development companies in last 2 years. They pigeon whole themselves into a market or language and not invest in the future. 

Phil

[toc] | [prev] | [next] | [standalone]


#12277

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-16 14:50 -0800
Message-ID<b591aadc-9183-42c4-959a-9835e47f69e5@googlegroups.com>
In reply to#12274
That's all well and good Phil, but the fact is, the app is already 95% done in VO. Too late to "change horses" now as the deadline is March 1st. I'm fine moving to X#, but not in this instance. If I wanted answers on X#. I'd be posting in the relevant forum, not here.

Thanks for your example, but it's missing the most important thing - the attachment. Sorry if I sound harsh, but I'm really under the pump here, and YES, I AM a "one man band"

[toc] | [prev] | [next] | [standalone]


#12279

FromSherlock <sherlock@sherlock.com.au>
Date2019-02-17 01:42 -0800
Message-ID<33b935f4-9c02-4fad-9f79-12862664aa59@googlegroups.com>
In reply to#12277
snip[ Thanks for your example, but it's missing the most important thing - the attachment. Sorry if I sound harsh, but I'm really under the pump here, and YES, I AM a "one man band" ]

Does it work.. the attachment is easy.

Break down the problem.. do you fact have an authenticate or non authenticated user that ultimately you can use HTML or ATTACHMENT. ? 

Phil

[toc] | [prev] | [next] | [standalone]


#12280

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-17 02:06 -0800
Message-ID<ab64bac3-3942-4322-a385-5731b78c4d32@googlegroups.com>
In reply to#12279
In my original message, I wrote:

  ?? oSmtp:Logon() <- returns TRUE, so Port, Username and password I'm assuming can't be the problem...

Am I wrong here? 

[toc] | [prev] | [next] | [standalone]


#12281

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-17 02:11 -0800
Message-ID<f2278353-f6c2-433b-a229-f0c1f6f52c4b@googlegroups.com>
In reply to#12280
Ultimately, what the plan is, is to generate an invoice in ReportPro 2.17, then attach it to an email. If that helps.

The attachment name appears in the subject, but no actual attachment.

[toc] | [prev] | [next] | [standalone]


#12272

FromSherlock <sherlock@sherlock.com.au>
Date2019-02-16 05:31 -0800
Message-ID<e84af494-4bb8-443a-9d6f-26a17fe8f870@googlegroups.com>
In reply to#12270
Jeff

https://www.youtube.com/watch?v=PEetQ55B9U4

Checked website 40,000 for 1st 30 days and 100 a day forever.
We have 3 accounts and separate some product groups.

Have 3x 100,000 a month accounts.

When clients say sent email to X they did not receive it. there are logs of open and forward etc.

A client for $15k a month can send 100,000 a month with many benefits.
We give all our clients free 2000 a month and when they hit that limit on our account we move them to their own account and costs.

While I remember the days of Google maps for free over.. with one month a $5000 bill.  Used to be 20,000 a day.. they changed it to 20,000 a month and we hit 80,000 one month relating to websites.  We found there spiders crawling caused a good chunk of the traffic they were billing.  Lots of work now with spider detects to stop those map calls.  

We live in interesting time.s
 
Phil

[toc] | [prev] | [next] | [standalone]


#12273

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-16 05:34 -0800
Message-ID<8f5dba8a-4b2f-4c86-86b8-b67a1598656c@googlegroups.com>
In reply to#12272
Methinks your account is hacked, or you're drunk Phil. You're not answering in any USEFUL way my question, and all I can see is SPAM

[toc] | [prev] | [next] | [standalone]


#12275

FromSherlock <sherlock@sherlock.com.au>
Date2019-02-16 05:38 -0800
Message-ID<fdb56b87-e262-48be-8e03-cf33680886e3@googlegroups.com>
In reply to#12273
Jeff

You don't want to hear the answer.. or should I say an answer that a professional company would see as benefit to their customers.

Maybe you are one man show and thinking the ways we used to do things.

If the old things worked we would not have had to change.

Phil

[toc] | [prev] | [next] | [standalone]


#12276

FromSherlock <sherlock@sherlock.com.au>
Date2019-02-16 10:09 -0800
Message-ID<04224d2c-d3d1-4173-a490-2b154a543c97@googlegroups.com>
In reply to#12265
Try this your details ;

METHOD TestSMTP_Email() CLASS app

 LOCAL oSMTP 		AS cSMTP
 LOCAL oEmail		AS cEmail
 LOCAL lOK := FALSE	AS LOGIC
	
 oEmail := CEmail{}
 //
 oEmail:FromAddress := "in...@lightningpc.com.au"
 oEmail:FromName    := "Test EMAIL" //  feedback..
 oEmail:Cargo       := ''											
 oEmail:Subject     := "can you see if this works" + Time24()
 oEmail:DestList    := { "xxx.xxxx.com" }			
 oEmail:MailBody    := "Smtp/cEmail TESTING engine is working" 
 //
 oSMTP := CSmtp{ oEmail }        

 oSMTP:UserName     := "myWORKS testing guru"
 oSMTP:PassWord     := "bananas"
 oSMTP:SecureSMTP   := TRUE
 oSMTP:RemoteHost   := GetIPAddress("mail.mywork.com.au")  
 //
 // if oSMTP:SecureSMTP      
 //   oSMTP:Domainname := oSMTP:RemoteHost
 // ENDIF
 //
 lOK := oSMTP:SendMail( IPPORT_SMTP )  // PORT 25
 //
 oSMTP 	:= NULL_OBJECT	
 oEMail := NULL_OBJECT
 //
RETURN SELF

[toc] | [prev] | [next] | [standalone]


#12282

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2019-02-17 11:35 +0100
Message-ID<gcsro1F1fcdU1@mid.individual.net>
In reply to#12265
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     



-- 

[toc] | [prev] | [next] | [standalone]


#12283

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-17 02:43 -0800
Message-ID<71c3123e-f61e-4246-9ea2-ad6e1dea01f7@googlegroups.com>
In reply to#12282
Thanks Wolfgang, I'm sure you're right about X#, everyone seems to be telling me that. Thing is at the moment I'm working to a very tight deadline on March 1st and don't have time to learn X#. Who knows, if I meet the deadline, I might get asked to write a version 2, or a completely new app, that I can then write in X#.

Thanks also for your links I'll check those out in the morning.

[toc] | [prev] | [next] | [standalone]


#12292

From"Wolfgang Riedmann" <wriedmann@gmail.com>
Date2019-02-18 06:37 +0100
Message-ID<gcuulfFfilmU1@mid.individual.net>
In reply to#12283
Hi Jeff,

if you have a large codebase in VO, then X# is the only way to go - if
you can not afford to rewrite all your code.
Fortunately we have this possibility! 

Wolfgang


Jeff Rollo wrote:

> Thanks Wolfgang, I'm sure you're right about X#, everyone seems to be
> telling me that. Thing is at the moment I'm working to a very tight
> deadline on March 1st and don't have time to learn X#. Who knows, if
> I meet the deadline, I might get asked to write a version 2, or a
> completely new app, that I can then write in X#.
> 
> Thanks also for your links I'll check those out in the morning.



-- 

[toc] | [prev] | [next] | [standalone]


#12286

FromFranz Rachbauer <office@rachbauer.org>
Date2019-02-17 12:29 +0100
Message-ID<q4bgic$j4g$1@gioia.aioe.org>
In reply to#12265
Hi Jeff,
this code works within my VO2.8 SendInvoice app, used to send PDF invoices:

oEmail := CEmail{""}
oEmail:FromAddress := "office@rachbauer.org"
oEmail:FromName:= "CoRa"
oEmail:ReplyTo := "office@rachbauer.org"
oEmail:DestList:= {"office@rachbauer.org"}
oEmail:CCList  := {}
oEmail:BCCList := {"office@rachbauer.org"}
oEmail:Subject :="Test Email"
oEmail:Cargo   := "PdfMail: SMTP Mail Client - Powered by CoRa"
oEmail:MailBody := "Mailbody"
oEmail:AddAttachment("c:\tmp\tiba\pdf\RG20190090.pdf")
? "EMail.ErrorMsg=", oEmail:ErrorMsg
? "EMail.Error=", oEmail:Error

oSmtp := CSmtp{oEmail, "smtp.a1.net", 25} // Port decimal not string!
oSmtp:SecureSMTP := FALSE
oSmtp:UserName := "secure"
oSmtp:PassWord := "secure"
lRet := oSmtp:SendMail()
? "Smtp.ErrorMsg=", oSmtp:ErrorMsg	
? "Smtp.Error=", oSmtp:Error
oSmtp:Close()
? "lRet=", lRet

Regards, Franz

Am 16.02.2019 um 05:15 schrieb Jeff Rollo:
> 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
> 

[toc] | [prev] | [next] | [standalone]


#12287

FromJeff Rollo <jrollo64@gmail.com>
Date2019-02-17 03:31 -0800
Message-ID<46817e7f-4ddf-47d8-8644-4f3bc59dee52@googlegroups.com>
In reply to#12286
Thanks very much Franz, ill try that in the morning 😊

[toc] | [prev] | [next] | [standalone]


#12293

FromD.J.W. van Kooten <vankooten@removethis.ic2.com>
Date2019-02-18 23:58 +0100
Message-ID<rodm6e5dujsojkdijmd70ssan62kjqfqsi@4ax.com>
In reply to#12265
Replying on message of Fri, 15 Feb 2019 20:15:14 -0800 (PST) from Jeff
Rollo:


 Hello Jeff,

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


What is the exact problem after the Login returning true?

Also: which version of VO do you use again? Some background:

We've extensively worked with the VO mail libs. The older version libs
had so many problems that in the end Geoff Schaller wrote his own
version which solved a lot of these problems. In the latest VO
releases, a much more efficient library replaced the previous one.
We've contribututed a few changes as well which Robert implemented
when he worked for Grafx.

In the end we bought Chillkat as another missing feature in the
library would take us too much time to write ourselves. But the VO 2.8
lib should definitely work fine for most tasks. You shouldn't need X#
for that.

Dick

[toc] | [prev] | [next] | [standalone]


Page 1 of 2  [1] 2  Next page →

Back to top | Article view | comp.lang.clipper.visual-objects


csiph-web