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: How can I know why cSmtp:SendMail() fails? Date: Tue, 12 Apr 2016 08:38:39 +0200 Lines: 41 Message-ID: References: <24d05728-e1a9-4fc2-9e79-4df7dae31b7b@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 X-Trace: individual.net 1ma3wUSoSY1V12v7zNtO7QvjBUWJOMv2vev/VCghvkWeNhbL8= Cancel-Lock: sha1:3J74oFyMNM0j2tc1twon7OxpKaE= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:9247 Hi Pedro, there are several possibilities: - your customers server is requiring authentication and yours not - your customers server is requiring another type of authentication than yours - your customers server is requiring another port (you could try port 587) - your customers server is requiring ssl use The first and the 3rd problem should be solvable with VO, the others not so easy. Wolfgang > Hi, I'm using the email sample aef that comes with CAVO 2.8 SP 4 and > want to know the reason of the SendMail() method failing. I tried > with my email server and it works fine, but with my customer's server > fails. I changed the code to: > > IF oSmtp:SendMail() > oEmailServer:FIELDPUT(#BOXID, > EmailServer:ApplySentboxRules(oEmail)) ELSE > IF oSmtp:CheckReply() > xReplyString := oSmtp:ReplyString // NULL STRING > xReplyCode := oSmtp:ReplyCode // 0 > xError := oSmtp:Error // 0 > ENDIF > lOK := FALSE > ENDIF > > But it returns no information of what's wrong > > Any help will be appreciated. --