Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WwIPstuff sendmail() smtp authentication.
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
West Wind Web Connection
Divers
Thread ID:
00845460
Message ID:
00862599
Vues:
80
Chris,

VERSION:
I'm not exactly sure the version of wwIPstuff I'm using, HOWEVER, if you have a look at the WW webpage...
http://www.west-wind.com/wwIpstuff.asp
... it says version 4.40 updated 13-Nov-2003. I am NOT using this particular version. I am using the version that came before this one. As I mentioned in my email below, the date of the wwIPstuff.DLL file is 5-Dec-02 (i.e., this is the date of the file after unzipping it from the file I downloaded from West-Wind).

I am not using 4.40 (13-Nov-03) not because of any problems/issues, but simply because I didn't know that a new version was available. I will give 4.40 a try sometime soon.


CODE:
Here is a simplified cut&paste of the code I use to send emails (c:\kcisoft\wwip is the folder where the wwIPstuff files are located):

*** set the path etc.
set default to c:\kcisoft\wwip\
SET PROCEDURE TO wwUtils ADDITIVE
SET CLASSLIB TO wwIPStuff ADDITIVE

*** create the object
oKCIemail=CREATEOBJECT("wwIPstuff")

*** set the properties (including mailserver, name, password, etc)
oKCIemail.cMailServer = lckeMailServer
oKCIemail.cUsername = lckeUsername
oKCIemail.cPassword = lckePassword
oKCIemail.cSubject = lckeSubject
oKCIemail.cRecipient = lckeTo
oKCIemail.cCCList = lckeCC
oKCIemail.cBCCList = lckeBCC
oKCIemail.cMessage = lckeBody + lcSignature

*** send the message and see what happens
if not oKCIemail.SendMail()
lcErrText = oKCIemail.cErrorMsg
else
wait window "sent ok" timeout .6
endif


Note: All of the 'lc' variables in the code above are established prior to the email routine. For email authentication, I go through Verizon's mail server: Let's say my Verizon name is "Mickey123" and my Verizon password is "abcdef123", then these vars are set as follows:

lckeUsername = "mickey123"
lckePassword = "abcdef123"
lckeMailServer = "outgoing.verizon.net"


Hope this helps,

- Larry



Larry:

Can u post the sample code u are using to send authenticated email w/ WWIPstuff? What is the version/date of WWIPstuff?

I am having the same problem and am getting nowhere.

thanks.


>Here's the fix that worked for me:
>
>Turns out, I was using an older version of wwIpstuff.dll (file dated 20-Jan-02) which I had restored from a backup disk after a hard drive problem. Once I upgraded to the newer version (file dated 5-Dec-02), sendmail() worked fine with authentication, and I did not need to mess with making a pop connection first.
>
>FYI. I was put on the right track by a message I found in the West-Wind message board: "Make sure you are using the appropriate wwIPStuff.dll. If you have upgraded from a prior version, you might not be using the right .DLL. Double-check it. Then triple-check it." - Guy Pardoe
>
>Thanks Guy!
>
>- Larry
>
>
>
>[original post]:
>I'm using wwIPstuff’s sendmail()from a VFP app. This has worked fine until I changed my email provider from Earthlink to Verizon. Testing with my email client and talking to Verizon I verified that Verizon requires authentication whereas Earthlink does not. So I added the cUsername and cPassword properties (plus, of course, the new cMailServer property) for Verizon, but sendmail() still failed - giving a 'relay' error. I've read the relevant UT threads on this, plus Rick Strahl's Wiki post (http://www.west-wind.com/wiki/kb.wiki?wc~EmailRelayingDenied), but am still having problems.
>
>(a) If I must make a POP3 connection first, how would I best do this and can this be done using wwIPstuff? Would I be making a pop3 connection to the smtp server?
>
>(b) Is it possible that wwIPstuff's sendmail() simply won't work with the Verizon mail server?
>
>Thanks!
>- Larry
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform