Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.clipper.visual-objects > #12286
| From | Franz Rachbauer <office@rachbauer.org> |
|---|---|
| Newsgroups | comp.lang.clipper.visual-objects |
| Subject | Re: cEmail and cSMTP cannot send |
| Date | 2019-02-17 12:29 +0100 |
| Organization | Aioe.org NNTP Server |
| Message-ID | <q4bgic$j4g$1@gioia.aioe.org> (permalink) |
| References | <faa6f7ff-e506-4c31-8d48-0d81b8887c43@googlegroups.com> |
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
>
Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
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
csiph-web