Thread View: borland.public.intrabuilder.forms
3 messages
3 total messages
Started by Lars Tschumi
Thu, 13 Aug 1998 00:00
mailsock.dll
Author: Lars Tschumi
Date: Thu, 13 Aug 1998 00:00
Date: Thu, 13 Aug 1998 00:00
70 lines
2738 bytes
2738 bytes
This is a multi-part message in MIME format.
--------------5F508A3692DCD9E4693D8556
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I have a intrabuilder app that send mail with the MAILSOCK.DLL
function.
but 4 day ago the function return only false. (dont cant send mail)
I have read that this funktion return false when have a problem with the
smtp server.
I dont know wath smtp server use this function. This function dont have
a parameter of smtp server.
anybody know how this function work? how choice this function te smtp
server?
thanks
To integrate mail into your own applications, use the MAILSOCK.DLL
file. The
Apps\GuestBk\GBMail.jfm file demonstrates the use of this DLL to send
mail.
The DLL contains a function called sendMail. To use this function you
must
prototype it in your own IntraBuilder application. The prototype is:
extern boolean sendMail(char* /*address*/,
char* /*sender*/,
char* /*subject*/,
char* /*body*/ ) "mailSock.dll"
Once the sendMail function has been prototyped, you can use it just like
any built in JavaScript function. Assuming that there are already
variables
that contain the addresses, subject and body, you can send mail with
this
call:
result=sendMail(address, sender, subject, body);
The value returned from sendMail is a logical true or false. If true,
the
mail was sent, otherwise there was some sort of error communicating with
the SMTP server. See the GBMail.jfm file for a working example.
--------------5F508A3692DCD9E4693D8556
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Lars Tschumi
Content-Disposition: attachment; filename="vcard.vcf"
begin: vcard
fn: Lars Tschumi
n: Tschumi ;Lars
org: Link S.A.
adr: Gorbea 2381;;;Santiago;Regi�n Metropolitana;;Chile
email;internet: lars.tschumi@din.cl
title: Jefe de Proyectos
tel;work: +(56-2) 6897232
tel;fax: +(56-2) 6897571
x-mozilla-cpt: ;0
x-mozilla-html: FALSE
version: 2.1
end: vcard
--------------5F508A3692DCD9E4693D8556--
Re: mailsock.dll
Author: Remigiusz Sokolowski
Date: Fri, 14 Aug 1998 00:00
Date: Fri, 14 Aug 1998 00:00
24 lines
1546 bytes
1546 bytes
> I have a intrabuilder app that send mail with the MAILSOCK.DLL > function. > but 4 day ago the function return only false. (dont cant send mail) > I have read that this funktion return false when have a problem with the > smtp server. > I dont know wath smtp server use this function. This function dont have > a parameter of smtp server. > anybody know how this function work? how choice this function te smtp > server? > thanks I test this function - my problem was the same as Yours - I get false return value (we use sendmail on Solaris system), but: - function sends letters - but returns false every time, so there is no possibility to know if it really sends, or there was real error in communication So, solution is: -get another function -or get out "if" command and wish all goes O.K. Regards Rem ------------------------------------------- Remigiusz Sokolowski e-mail: rems@gdansk.sprint.pl -------------------------------------------
Re: mailsock.dll
Author: luna
Date: Mon, 17 Aug 1998 00:00
Date: Mon, 17 Aug 1998 00:00
73 lines
3155 bytes
3155 bytes
Maybe your smtp server configuration is wrong. One of the ways you can configure it is by running the form gbconfig.jfm that comes with intrabuilder(see guestbook apps) Type in the correct ip for your smtp server. This will configure your smtp server. Now try your function.If you are not sure what your smtp server is, check out in network preferences of your internet browser. If that does not work ask your email service provider. i hope this will solve your problem. Also make sure you are using valid email addresses. Best wishes Luna Rajbhandari Kathmandu Lars Tschumi wrote: > I have a intrabuilder app that send mail with the MAILSOCK.DLL > function. > but 4 day ago the function return only false. (dont cant send mail) > I have read that this funktion return false when have a problem with the > smtp server. > I dont know wath smtp server use this function. This function dont have > a parameter of smtp server. > anybody know how this function work? how choice this function te smtp > server? > thanks > > To integrate mail into your own applications, use the MAILSOCK.DLL > file. The > Apps\GuestBk\GBMail.jfm file demonstrates the use of this DLL to send > mail. > The DLL contains a function called sendMail. To use this function you > must > prototype it in your own IntraBuilder application. The prototype is: > > extern boolean sendMail(char* /*address*/, > char* /*sender*/, > char* /*subject*/, > char* /*body*/ ) "mailSock.dll" > > Once the sendMail function has been prototyped, you can use it just like > > any built in JavaScript function. Assuming that there are already > variables > that contain the addresses, subject and body, you can send mail with > this > call: > > result=sendMail(address, sender, subject, body); > > The value returned from sendMail is a logical true or false. If true, > the > mail was sent, otherwise there was some sort of error communicating with > > the SMTP server. See the GBMail.jfm file for a working example. > > ------------------------------------------------------------------------ > > Lars Tschumi <lars.tschumi@din.cl> > Jefe de Proyectos > Link S.A. > > Lars Tschumi > Jefe de Proyectos <lars.tschumi@din.cl> > Link S.A. > Gorbea 2381 Work: +(56-2) 6897232 > Santiago Fax: +(56-2) 6897571 > Regi�n Metropolitana Netscape Conference Address > Chile Netscape Conference DLS Server > Additional Information: > Last Name Tschumi > First Name Lars > Version 2.1
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads