West Wind Client Tools
Unknown Member OBRIDGE
Gravatar is a globally recognized avatar based on your email address. Unknown Member OBRIDGE
  n/a
  All
  Apr 29, 2013 @ 09:48am
Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?

Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  Rick Strahl
  Ger
  Apr 29, 2013 @ 05:53pm

Please check the docs for the wwSmtp class. You need to deploy wwDotnetBridge if you plan on using the .NET wwSmtp component (nMailMode = 0). Classic mode (nMailMode=2) doesn't have this requirement.

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?




Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web

Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  n/a
  Rick Strahl
  Apr 29, 2013 @ 10:55pm
I have included the wwDotNetBridge.prg in the project
I have also copied the wwDotNetBridge.dll into the .exe folder

What else should I be doing (Note that when I run it on my machine it works fine)


Please check the docs for the wwSmtp class. You need to deploy wwDotnetBridge if you plan on using the .NET wwSmtp component (nMailMode = 0). Classic mode (nMailMode=2) doesn't have this requirement.

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?




Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  Rick Strahl
  Ger
  Apr 30, 2013 @ 02:56pm

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?




Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web

Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  n/a
  Rick Strahl
  Apr 30, 2013 @ 11:08pm
Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?




Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  Rick Strahl
  Ger
  May 1, 2013 @ 03:11pm
Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?







Rick Strahl
West Wind Technologies


from Maui, Hawaii

Making waves on the Web

Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  n/a
  Rick Strahl
  Apr 26, 2015 @ 11:04pm


Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?







Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  n/a
  Ger
  Apr 26, 2015 @ 11:21pm
Hi Rick
Just getting back to this now...it was never resolved ..getting same error on another client
UNKNOWN Member oBridge
I have checked that Dot Net is running (2. 3 and 4) and I have also UNlocked the DLL

This runs fine on my machine , but not at the client


My Code is :

==========================================
DO wwSmtp
LOCAL loSmtp as wwSmtp
loSmtp = CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0 && .NET 2 - classic (default)

loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T. && Google requires TLS

*** Optional authentication if server requires it
loSmtp.cUsername = "kernelsoftware@gmail.com"
loSmtp.cPassword = "xxxxxx"
loSmtp.cSenderName= "Gerard is the sender"
loSmtp.cSenderEmail = "gerardocarroll@gmail.com"

loSmtp.cRecipient = "gerard@kernel.ie"
loSmtp.cCcList = ""

loSmtp.cSubject = "Test Message through Google"

*** Optional - custom content type - text/plain by default
loSmtp.cContentType = "text/html"
loSmtp.cMessage = "<b>Test message from wwsmtp--KernelSoftware Gmail Sunday 13:08, to check out how this operation works.</b>"

*** Optional - send an alternate format to display if HTML isn't supported
loSmtp.cAlternateContentType = "text/plain"
loSmtp.cAlternateText = "Here is alternate content in plain text."

*** Optionally attach files
&& loSmtp.AddAttachment("c:\rick4453.jpg","image/jpg")
&& loSmtp.AddAttachment("c:\sailbig.jpg","image/jpg")

*** Optional - a couple of options
&& loSmtp.cReplyTo = "james@cranky.com"
&& loSmtp.cPriority = "High"

*** Send it
llResult = loSmtp.Sendmail()
IF llResult
WAIT WINDOW "Mail sent..." nowait
ELSE
? "Mail sending failed: "
? loSmtp.cErrorMsg
ENDIF

================================================




Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?








Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  Rick Strahl
  Ger
  Apr 26, 2015 @ 11:25pm
Please check error messages along the way of your calls.

Most likely the problem is that the DLL is locked. Check the wwDotnetBridge FAQ Section in the documentation.

http://www.west-wind.com/webconnection/wwClient_docs/?page=_36e0ql9ic.htm

+++ Rick ---



Hi Rick
Just getting back to this now...it was never resolved ..getting same error on another client
UNKNOWN Member oBridge
I have checked that Dot Net is running (2. 3 and 4) and I have also UNlocked the DLL

This runs fine on my machine , but not at the client


My Code is :

==========================================
DO wwSmtp
LOCAL loSmtp as wwSmtp
loSmtp = CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0 && .NET 2 - classic (default)

loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T. && Google requires TLS

*** Optional authentication if server requires it
loSmtp.cUsername = "kernelsoftware@gmail.com"
loSmtp.cPassword = "xxxxxx"
loSmtp.cSenderName= "Gerard is the sender"
loSmtp.cSenderEmail = "gerardocarroll@gmail.com"

loSmtp.cRecipient = "gerard@kernel.ie"
loSmtp.cCcList = ""

loSmtp.cSubject = "Test Message through Google"

*** Optional - custom content type - text/plain by default
loSmtp.cContentType = "text/html"
loSmtp.cMessage = "<b>Test message from wwsmtp--KernelSoftware Gmail Sunday 13:08, to check out how this operation works.</b>"

*** Optional - send an alternate format to display if HTML isn't supported
loSmtp.cAlternateContentType = "text/plain"
loSmtp.cAlternateText = "Here is alternate content in plain text."

*** Optionally attach files
&& loSmtp.AddAttachment("c:\rick4453.jpg","image/jpg")
&& loSmtp.AddAttachment("c:\sailbig.jpg","image/jpg")

*** Optional - a couple of options
&& loSmtp.cReplyTo = "james@cranky.com"
&& loSmtp.cPriority = "High"

*** Send it
llResult = loSmtp.Sendmail()
IF llResult
WAIT WINDOW "Mail sent..." nowait
ELSE
? "Mail sending failed: "
? loSmtp.cErrorMsg
ENDIF

================================================




Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?











Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  n/a
  Rick Strahl
  Apr 26, 2015 @ 11:58pm
Hi Rick
I had Unlocked the DLL (wwDotnetBridge.dll) and still getting the error

Regards,
Gerard



Please check error messages along the way of your calls.

Most likely the problem is that the DLL is locked. Check the wwDotnetBridge FAQ Section in the documentation.

http://www.west-wind.com/webconnection/wwClient_docs/?page=_36e0ql9ic.htm

+++ Rick ---



Hi Rick
Just getting back to this now...it was never resolved ..getting same error on another client
UNKNOWN Member oBridge
I have checked that Dot Net is running (2. 3 and 4) and I have also UNlocked the DLL

This runs fine on my machine , but not at the client


My Code is :

==========================================
DO wwSmtp
LOCAL loSmtp as wwSmtp
loSmtp = CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0 && .NET 2 - classic (default)

loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T. && Google requires TLS

*** Optional authentication if server requires it
loSmtp.cUsername = "kernelsoftware@gmail.com"
loSmtp.cPassword = "xxxxxx"
loSmtp.cSenderName= "Gerard is the sender"
loSmtp.cSenderEmail = "gerardocarroll@gmail.com"

loSmtp.cRecipient = "gerard@kernel.ie"
loSmtp.cCcList = ""

loSmtp.cSubject = "Test Message through Google"

*** Optional - custom content type - text/plain by default
loSmtp.cContentType = "text/html"
loSmtp.cMessage = "<b>Test message from wwsmtp--KernelSoftware Gmail Sunday 13:08, to check out how this operation works.</b>"

*** Optional - send an alternate format to display if HTML isn't supported
loSmtp.cAlternateContentType = "text/plain"
loSmtp.cAlternateText = "Here is alternate content in plain text."

*** Optionally attach files
&& loSmtp.AddAttachment("c:\rick4453.jpg","image/jpg")
&& loSmtp.AddAttachment("c:\sailbig.jpg","image/jpg")

*** Optional - a couple of options
&& loSmtp.cReplyTo = "james@cranky.com"
&& loSmtp.cPriority = "High"

*** Send it
llResult = loSmtp.Sendmail()
IF llResult
WAIT WINDOW "Mail sent..." nowait
ELSE
? "Mail sending failed: "
? loSmtp.cErrorMsg
ENDIF

================================================




Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?











Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  n/a
  Ger
  May 11, 2015 @ 09:42pm

Hi

Still having this probelm, on a number of different sites
I have checked that DLL is not locked

Any ideas ?

Regards,
Gerard




Please check error messages along the way of your calls.

Most likely the problem is that the DLL is locked. Check the wwDotnetBridge FAQ Section in the documentation.

http://www.west-wind.com/webconnection/wwClient_docs/?page=_36e0ql9ic.htm

+++ Rick ---



Hi Rick
Just getting back to this now...it was never resolved ..getting same error on another client
UNKNOWN Member oBridge
I have checked that Dot Net is running (2. 3 and 4) and I have also UNlocked the DLL

This runs fine on my machine , but not at the client


My Code is :

==========================================
DO wwSmtp
LOCAL loSmtp as wwSmtp
loSmtp = CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0 && .NET 2 - classic (default)

loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T. && Google requires TLS

*** Optional authentication if server requires it
loSmtp.cUsername = "kernelsoftware@gmail.com"
loSmtp.cPassword = "xxxxxx"
loSmtp.cSenderName= "Gerard is the sender"
loSmtp.cSenderEmail = "gerardocarroll@gmail.com"

loSmtp.cRecipient = "gerard@kernel.ie"
loSmtp.cCcList = ""

loSmtp.cSubject = "Test Message through Google"

*** Optional - custom content type - text/plain by default
loSmtp.cContentType = "text/html"
loSmtp.cMessage = "<b>Test message from wwsmtp--KernelSoftware Gmail Sunday 13:08, to check out how this operation works.</b>"

*** Optional - send an alternate format to display if HTML isn't supported
loSmtp.cAlternateContentType = "text/plain"
loSmtp.cAlternateText = "Here is alternate content in plain text."

*** Optionally attach files
&& loSmtp.AddAttachment("c:\rick4453.jpg","image/jpg")
&& loSmtp.AddAttachment("c:\sailbig.jpg","image/jpg")

*** Optional - a couple of options
&& loSmtp.cReplyTo = "james@cranky.com"
&& loSmtp.cPriority = "High"

*** Send it
llResult = loSmtp.Sendmail()
IF llResult
WAIT WINDOW "Mail sent..." nowait
ELSE
? "Mail sending failed: "
? loSmtp.cErrorMsg
ENDIF

================================================




Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?












Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  Rick Strahl
  Ger
  May 12, 2015 @ 10:45am
I'm not sure, but it sounds like wwDotnetBridge is not able to load.

Try running this code and see what you get:

do wwDotNetBridge
LOCAL loBridge as wwDotNetBridge
loBridge = GetwwDotnetBridge()

*** What does this say?
? loBridge.GetDotnetversion()

+++ Rick ---


Hi

Still having this probelm, on a number of different sites
I have checked that DLL is not locked

Any ideas ?

Regards,
Gerard




Please check error messages along the way of your calls.

Most likely the problem is that the DLL is locked. Check the wwDotnetBridge FAQ Section in the documentation.

http://www.west-wind.com/webconnection/wwClient_docs/?page=_36e0ql9ic.htm

+++ Rick ---



Hi Rick
Just getting back to this now...it was never resolved ..getting same error on another client
UNKNOWN Member oBridge
I have checked that Dot Net is running (2. 3 and 4) and I have also UNlocked the DLL

This runs fine on my machine , but not at the client


My Code is :

==========================================
DO wwSmtp
LOCAL loSmtp as wwSmtp
loSmtp = CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0 && .NET 2 - classic (default)

loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T. && Google requires TLS

*** Optional authentication if server requires it
loSmtp.cUsername = "kernelsoftware@gmail.com"
loSmtp.cPassword = "xxxxxx"
loSmtp.cSenderName= "Gerard is the sender"
loSmtp.cSenderEmail = "gerardocarroll@gmail.com"

loSmtp.cRecipient = "gerard@kernel.ie"
loSmtp.cCcList = ""

loSmtp.cSubject = "Test Message through Google"

*** Optional - custom content type - text/plain by default
loSmtp.cContentType = "text/html"
loSmtp.cMessage = "<b>Test message from wwsmtp--KernelSoftware Gmail Sunday 13:08, to check out how this operation works.</b>"

*** Optional - send an alternate format to display if HTML isn't supported
loSmtp.cAlternateContentType = "text/plain"
loSmtp.cAlternateText = "Here is alternate content in plain text."

*** Optionally attach files
&& loSmtp.AddAttachment("c:\rick4453.jpg","image/jpg")
&& loSmtp.AddAttachment("c:\sailbig.jpg","image/jpg")

*** Optional - a couple of options
&& loSmtp.cReplyTo = "james@cranky.com"
&& loSmtp.cPriority = "High"

*** Send it
llResult = loSmtp.Sendmail()
IF llResult
WAIT WINDOW "Mail sent..." nowait
ELSE
? "Mail sending failed: "
? loSmtp.cErrorMsg
ENDIF

================================================




Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?














Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  n/a
  Rick Strahl
  May 12, 2015 @ 10:36pm
Hi Rick
I ran the code:

Do wwDotNetBridge ........ runs without an error

loBridge = GetwwDotnetBridge() ............ comes up with : loBridge is not an object


JUst one thought ....I am running this in VFP8...is it supported for VFP8 ??

Regards,
Gerard


I'm not sure, but it sounds like wwDotnetBridge is not able to load.

Try running this code and see what you get:

do wwDotNetBridge
LOCAL loBridge as wwDotNetBridge
loBridge = GetwwDotnetBridge()

*** What does this say?
? loBridge.GetDotnetversion()

+++ Rick ---


Hi

Still having this probelm, on a number of different sites
I have checked that DLL is not locked

Any ideas ?

Regards,
Gerard




Please check error messages along the way of your calls.

Most likely the problem is that the DLL is locked. Check the wwDotnetBridge FAQ Section in the documentation.

http://www.west-wind.com/webconnection/wwClient_docs/?page=_36e0ql9ic.htm

+++ Rick ---



Hi Rick
Just getting back to this now...it was never resolved ..getting same error on another client
UNKNOWN Member oBridge
I have checked that Dot Net is running (2. 3 and 4) and I have also UNlocked the DLL

This runs fine on my machine , but not at the client


My Code is :

==========================================
DO wwSmtp
LOCAL loSmtp as wwSmtp
loSmtp = CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0 && .NET 2 - classic (default)

loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T. && Google requires TLS

*** Optional authentication if server requires it
loSmtp.cUsername = "kernelsoftware@gmail.com"
loSmtp.cPassword = "xxxxxx"
loSmtp.cSenderName= "Gerard is the sender"
loSmtp.cSenderEmail = "gerardocarroll@gmail.com"

loSmtp.cRecipient = "gerard@kernel.ie"
loSmtp.cCcList = ""

loSmtp.cSubject = "Test Message through Google"

*** Optional - custom content type - text/plain by default
loSmtp.cContentType = "text/html"
loSmtp.cMessage = "<b>Test message from wwsmtp--KernelSoftware Gmail Sunday 13:08, to check out how this operation works.</b>"

*** Optional - send an alternate format to display if HTML isn't supported
loSmtp.cAlternateContentType = "text/plain"
loSmtp.cAlternateText = "Here is alternate content in plain text."

*** Optionally attach files
&& loSmtp.AddAttachment("c:\rick4453.jpg","image/jpg")
&& loSmtp.AddAttachment("c:\sailbig.jpg","image/jpg")

*** Optional - a couple of options
&& loSmtp.cReplyTo = "james@cranky.com"
&& loSmtp.cPriority = "High"

*** Send it
llResult = loSmtp.Sendmail()
IF llResult
WAIT WINDOW "Mail sent..." nowait
ELSE
? "Mail sending failed: "
? loSmtp.cErrorMsg
ENDIF

================================================




Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?
















Gravatar is a globally recognized avatar based on your email address. Re: Unknown Member OBRIDGE
  Rick Strahl
  Ger
  May 13, 2015 @ 07:43am

I am not sure why that would be. You should get an error if it fails to load before that that might have more information.

IAC, I released a new version of the Client Tools day before yesterday. To be sure try downloading the latest version and retry with that just to make sure you ahve all the latest pieces.

If that doesn't work I'm out of ideas.

You do have to have .NET 2.0 or 4.x (Full not ClientProfile) installed. That's the only thing I can think of.

+++ Rick ---



Hi Rick
I ran the code:

Do wwDotNetBridge ........ runs without an error

loBridge = GetwwDotnetBridge() ............ comes up with : loBridge is not an object


JUst one thought ....I am running this in VFP8...is it supported for VFP8 ??

Regards,
Gerard


I'm not sure, but it sounds like wwDotnetBridge is not able to load.

Try running this code and see what you get:

do wwDotNetBridge
LOCAL loBridge as wwDotNetBridge
loBridge = GetwwDotnetBridge()

*** What does this say?
? loBridge.GetDotnetversion()

+++ Rick ---


Hi

Still having this probelm, on a number of different sites
I have checked that DLL is not locked

Any ideas ?

Regards,
Gerard




Please check error messages along the way of your calls.

Most likely the problem is that the DLL is locked. Check the wwDotnetBridge FAQ Section in the documentation.

http://www.west-wind.com/webconnection/wwClient_docs/?page=_36e0ql9ic.htm

+++ Rick ---



Hi Rick
Just getting back to this now...it was never resolved ..getting same error on another client
UNKNOWN Member oBridge
I have checked that Dot Net is running (2. 3 and 4) and I have also UNlocked the DLL

This runs fine on my machine , but not at the client


My Code is :

==========================================
DO wwSmtp
LOCAL loSmtp as wwSmtp
loSmtp = CREATEOBJECT("wwSmtp")
loSmtp.nMailMode = 0 && .NET 2 - classic (default)

loSmtp.cMailServer = "smtp.gmail.com:587"
loSmtp.lUseSsl = .T. && Google requires TLS

*** Optional authentication if server requires it
loSmtp.cUsername = "kernelsoftware@gmail.com"
loSmtp.cPassword = "xxxxxx"
loSmtp.cSenderName= "Gerard is the sender"
loSmtp.cSenderEmail = "gerardocarroll@gmail.com"

loSmtp.cRecipient = "gerard@kernel.ie"
loSmtp.cCcList = ""

loSmtp.cSubject = "Test Message through Google"

*** Optional - custom content type - text/plain by default
loSmtp.cContentType = "text/html"
loSmtp.cMessage = "<b>Test message from wwsmtp--KernelSoftware Gmail Sunday 13:08, to check out how this operation works.</b>"

*** Optional - send an alternate format to display if HTML isn't supported
loSmtp.cAlternateContentType = "text/plain"
loSmtp.cAlternateText = "Here is alternate content in plain text."

*** Optionally attach files
&& loSmtp.AddAttachment("c:\rick4453.jpg","image/jpg")
&& loSmtp.AddAttachment("c:\sailbig.jpg","image/jpg")

*** Optional - a couple of options
&& loSmtp.cReplyTo = "james@cranky.com"
&& loSmtp.cPriority = "High"

*** Send it
llResult = loSmtp.Sendmail()
IF llResult
WAIT WINDOW "Mail sent..." nowait
ELSE
? "Mail sending failed: "
? loSmtp.cErrorMsg
ENDIF

================================================




Well it looks like wwDotnetBridge is working fine...

Please post your code and exactly what's failing when running wwSmtp.

+++ Rick ---



Hi Rick
.net version 2.0.50727.5466 file E:\Kernel\DublinTest\wwDotNetbridge.dll

Regards,
Ger

Not sure. I need to know the point of failure. if wwdotnetbridge is not loading there should be an error firing prior to that... when it actually loads not when you're trying to access it.

Most likely problem: Either .NET is not installed or you need to unlock the DLL:

wcdocs:_3rf12jtma.htm

To test for the error:

DO wwDotnetBridge
loBridge = CREATEOBJECT("wwDotnetBridge")
? loBridge.GetDotnetVersion()

+++ Rick ---



Have gone up to ver5.5 on Client Tools (Using wwSMTP)
Tested on My Own machine--works dine

Deployed to Client Server and get message:
Unknown Member OBRIDGE
WWSMTP.CREATEWWSMTP

Any ideas of whats going wrong ?

















Rick Strahl
West Wind Technologies

Making waves on the Web
from Maui

© 1996-2024