Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.javascript > #18631
| From | "Mel Smith" <med_cutout_syntel@aol.com> |
|---|---|
| Newsgroups | comp.lang.javascript |
| Subject | Re: Strange Delay in Page display (OT ??) |
| Date | 2013-02-25 16:41 -0700 |
| Message-ID | <ap2b56F7atjU1@mid.individual.net> (permalink) |
| References | (2 earlier) <aonu3hFt8h4U1@mid.individual.net> <aonuqaFtcusU1@mid.individual.net> <ufzWs.14885$Zp1.6558@en-nntp-15.dc1.easynews.com> <ap1vtuF4pd1U1@mid.individual.net> <kggls7$k5d$1@speranza.aioe.org> |
Christoph said:
> Of course this won't fit with a clean separation of model and view, so
> another possibility might be to send the mail asynchronously, e.g. by
> writing it to a queue which will be processed independently.
>
Hi Christoph:
Below is the short section where I read in the form template, then
fill-it in, then send it to Apache for frorwarding to my Apache server.
Then, I send info down two levels to my Mail Sender to start the set up
and delivering of the mail
***************************************************
cFORM :=MEMOREAD(cREGCPLT) // Read-in the form template
// now replace holding fields with actual user data
cFORM := STRTRAN(cFORM,"#uuserid#",cUSERID)
cFORM := STRTRAN(cFORM,"#upassword#",cPASSWORD)
cFORM := STRTRAN(cFORM,"#uscrname#",cSCREENNAME)
cFORM := STRTRAN(cFORM,"#uemail#",cEMAIL) // but don't show this on
his display
CGIOUT cFORM // send the form to Apache for onward transmission
to the user
// Now go and send the confirming email to the person who registered
lMAILSENT := REGEMAIL(cUSERID,cUKEY,cPASSWORD,cSCREENNAME,cEMAIL) //
two levels down is the actual hb_sendmail() function
IF .NOT. lMAILSENT
ERRLOG("Fail Send Email :" + cUSERID + " at " + cEMAIL)
ENDIF
CLOSE DATABASES
RETURN NIL // and release this thread
********************************************
Instead, as you mentioned, I could set up an asynchronous process to
send the email. This is easy for me to do, and I will consider doing it
(i.e., starting up another 'process' to run the hb_sendmail(). I can also
change the 'timeout' period I give the function to 'test' the response I get
from the user's email provider.
Thanks for the alternate suggestion. I'll try it.
--
Mel Smith
Back to comp.lang.javascript | Previous | Next — Previous in thread | Find similar | Unroll thread
Strange Delay in Page display (OT ??) "Mel Smith" <med_cutout_syntel@aol.com> - 2013-02-21 11:31 -0700
Re: Strange Delay in Page display (OT ??) Danny <dann90038@gmail.com> - 2013-02-21 15:42 -0800
Re: Strange Delay in Page display (OT ??) "Mel Smith" <med_cutout_syntel@aol.com> - 2013-02-21 17:57 -0700
Re: Strange Delay in Page display (OT ??) "Mel Smith" <med_cutout_syntel@aol.com> - 2013-02-21 18:09 -0700
Re: Strange Delay in Page display (OT ??) Richard Damon <Richard@Damon-Family.org> - 2013-02-24 20:37 -0500
Re: Strange Delay in Page display (OT ??) "Mel Smith" <med_cutout_syntel@aol.com> - 2013-02-25 13:29 -0700
Re: Strange Delay in Page display (OT ??) Christoph Becker <cmbecker69@gmx.de> - 2013-02-25 22:43 +0100
Re: Strange Delay in Page display (OT ??) "Mel Smith" <med_cutout_syntel@aol.com> - 2013-02-25 16:41 -0700
csiph-web