testsmtp.prg - Can't get it working.

testsmtp.prg - Can't get it working.

Postby Dan Landon » Wed Nov 09, 2005 11:49 am

I'm trying to include the SendMail() routine in the testsmtp.prg test program in my application to send an email. I've changed it to my SMTP server and my email. All I get from the GetHostByName() call is an IP address of 0.0.0.0. It also seems to return very quickly which looks like it is not doing the lookup.

I am using Xbase++ version 1.82 and FW++ 2.6.

Anyone have any ideas? I suspect that this doesn't work in Xbase++.

Dan
Dan Landon
 
Posts: 28
Joined: Wed Nov 09, 2005 11:46 am

Postby Antonio Linares » Thu Nov 10, 2005 9:45 am

Dan,

We are reviewing it. We will answer you asap.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41312
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Thu Nov 10, 2005 10:55 am

Dan,

Ok, its working. There are some little changes to implement:

In samples\TestSmtp.prg, change:

oOutMail = TSmtp():New( cIP := GetHostByName( "smtp.fivetechsoft.com" ) )

into:

WSAStartup()
oOutMail := TSmtp():New( cIP := GetHostByName( "smtp.fivetechsoft.com" ) ) // Notice the use of ":=" at the beginning

That will provide you a valid cIP.

Also there is a change needed at Class TSmtp. We may tell you the change, or we may send you a fixed Five32rt.dll. Please let us know.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41312
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Dan Landon » Thu Nov 10, 2005 11:41 am

I'd prefer the revised fivert32rt.dll.

Thanks
Dan Landon
 
Posts: 28
Joined: Wed Nov 09, 2005 11:46 am

Postby Antonio Linares » Thu Nov 10, 2005 5:01 pm

Dan,

Please send us an email requiring it (Five32rt.dll). Thanks.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41312
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

TSMTP Source Code Correction

Postby angelo.c » Thu Mar 30, 2006 11:21 am

Can you post the change to the source code for the TSMTP class. I need to fix it in my program.

Thankyou :D
Angelo
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Thu Mar 30, 2006 1:38 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41312
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby angelo.c » Thu Mar 30, 2006 10:49 pm

Hi Antonio,

Thankyou for the source for the updated Tsmtp class.

I have compiled it in my program and I get the following two (2) function references which can not be resolved:
cFileNoPath(...) ---I assume it has something to do with getting file paths
FMimeEnc(...) ---I assume file MIME Encoding is done here

I have the following version:
#define FWVERSION "FiveWin++ 1.82 - February 2004"
#define FWDESCRIPTION "FiveWin++ for Xbase++"
and use Alaska XBase++ 1.82 International.

I have put in dummy functions for the two above and the sending of Email text works fine.

Is it possible to get the source for the two functions and put them in as Static functions into my source.


Thankyou and Best regards,
Angelo
:lol:
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Fri Mar 31, 2006 7:38 am

Angelo,

cFileNoPath() source code is located at source\function\filename.prg

FMimeEnc() source code is located at source\function\mimeclip.prg
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41312
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby angelo.c » Fri Mar 31, 2006 2:22 pm

Hi Antonio

Thanks. That was easy. I should have looked in there before I asked the question. So much for working late and being so tired you don't think straight.

My program compiles and links OK now.

Thanks again,
Angelo
angelo.c
 
Posts: 36
Joined: Thu Mar 30, 2006 11:19 am

Postby Antonio Linares » Fri Mar 31, 2006 4:29 pm

Fine :)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41312
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveMac / FivePhone (iPhone, iPad)

Who is online

Users browsing this forum: No registered users and 5 guests