Frank Rocco
|
Posted: 06/11/2001, 12:24 PM |
|
Hello,
I want to create a subroutine that send email.
How and where do I include it in codecharge?
Thanks
Frank
example:
SendEmail(Contact_id)
SendEmail(employee_id)
|
|
|
Eddy
|
Posted: 06/11/2001, 12:32 PM |
|
Hi Frank,
You must be joking, read the tread below : "help with checkout button"
(sending to e-mail)
Greetings,
Eddy,
"Frank Rocco" <farocco@hotmail.com> wrote in message
news:9g35sv$efr$1@mail.tankhill.com...
> Hello,
>
> I want to create a subroutine that send email.
> How and where do I include it in codecharge?
>
> Thanks
>
> Frank
>
>
> example:
> SendEmail(Contact_id)
> SendEmail(employee_id)
>
>
|
|
|
Frank Rocco
|
Posted: 06/11/2001, 12:46 PM |
|
Sorry,
I did not read that thread.
I want to put it into a subroutine and call it.
Is that what the modules section is for?
Thanks
Frank
"Eddy" <eddy@intramanga.com> wrote in message
news:9g36d2$f5b$1@mail.tankhill.com...
> Hi Frank,
> You must be joking, read the tread below : "help with checkout button"
> (sending to e-mail)
>
> Greetings,
> Eddy,
>
>
> "Frank Rocco" <farocco@hotmail.com> wrote in message
>news:9g35sv$efr$1@mail.tankhill.com...
> > Hello,
> >
> > I want to create a subroutine that send email.
> > How and where do I include it in codecharge?
> >
> > Thanks
> >
> > Frank
> >
> >
> > example:
> > SendEmail(Contact_id)
> > SendEmail(employee_id)
> >
> >
>
>
|
|
|
Dr. Scott R. Senay
|
Posted: 06/11/2001, 8:27 PM |
|
Eddy YOU should read the thread below and GET OVER yourself!!!!
You bought a DEVELOPMENT TOOL, not an unlimited subscription to an entire
development organization... LEARN to read, READ the eaxmples and GET OVER
IT and OFF your high horse!!! I think you need to be banned from this
newsgroup, since your recent post indicates you are here to bitch and moan,
not to learn anything so just GO AWAY!!!! Frank has been on this board for
a while, asks decent questions, and takes things and runs with them. He is
also a new user and less experienced but has a good attitude and doesn't
DEMAND things he's not entitled to! GET OVER YOURSELF!!!!
Frank sending mail from within an application is easy, take a look at the
After Insert code in the admCaseRespose, Response form of the support
application, everything you need is right there... If you get stuck drop me
a note and I'll give you a hand...
Scott...
Eddy <eddy@intramanga.com> wrote in message
news:9g36d2$f5b$1@mail.tankhill.com...
> Hi Frank,
> You must be joking, read the tread below : "help with checkout button"
> (sending to e-mail)
>
> Greetings,
> Eddy,
>
>
> "Frank Rocco" <farocco@hotmail.com> wrote in message
>news:9g35sv$efr$1@mail.tankhill.com...
> > Hello,
> >
> > I want to create a subroutine that send email.
> > How and where do I include it in codecharge?
> >
> > Thanks
> >
> > Frank
> >
> >
> > example:
> > SendEmail(Contact_id)
> > SendEmail(employee_id)
> >
> >
>
>
|
|
|
Eddy
|
Posted: 06/12/2001, 4:46 AM |
|
"Dr. Scott R. Senay" <drsenay@conceptech.com> wrote in message
news:9g4271$6r8$1@mail.tankhill.com...
> Eddy YOU should read the thread below and GET OVER yourself!!!!
>
I think you should go see a real Doctor and have some treatment ...
|
|
|
Dr. Scott R. Senay
|
Posted: 06/12/2001, 4:05 PM |
|
Greetings Frank,
One further note that I though might help, CodeCharge uses a globally
available subroutine called of all things "mail" which takes arguments to
allow you to quickly and simply send all kinds of e-mail to anyone you wish.
The admCaseResponse page makes use of it in the Response form on the After
Insert event... In that code they make repeated use of the mail function to
send mail taking information both from the form, and by looking things up in
a table. If you have any trouble just drop me a note...
Here is a quick example that I've adapted from some CodeCharge samples...
When a user forgets his password he/she can simply provide his/her email
address and the system mails it to him/her after looking it up in the
database:
----------------------------------------------------------------------------
--------------------------------------------------
$pwd = dlookup("pmembers","member_password","email='$fldemail'");
mail($fldemail,"Per request, enclosed is your password","\n\nYour password
is $pwd", "From:youremail@yourname.com");
----------------------------------------------------------------------------
--------------------------------------------------
Breaking out that code above the following things can easily be seen:
We start by assigning the result of a table lookup to the local variable
$pwd. We are passing in a value from the page/form of "$fldemail", this is
being passed to the function "dlookup()" as a search criteria on the table
"pmembers" in short that function call constructs a SQL statement along the
lines of:
SELECT member_password FROM pmembers WHERE email="$fldemail"
and then returns that result assigning it to the local variable $pwd.
Next, the "mail()" function takes several arguments and sends out an email:
As shown above we are sending:
1.) The email address we are sending the password to,
2.) A subject line of "Per request, enclosed is your password",
3.) Message text that includes two blank lines and then the line "Your
password is $pwd",
4.) And finally the email address that the message is coming from which
the system uses as the FROM address.
And THAT as they say is that...
Scott...
P.S. This is what Eddy would have found and been able ot use if he'd READ
the first email or two from support. I got the impression from his posts
that he wanted them to wire the whole thing up for him...
Frank Rocco <farocco@hotmail.com> wrote in message
news:9g35sv$efr$1@mail.tankhill.com...
> Hello,
>
> I want to create a subroutine that send email.
> How and where do I include it in codecharge
>
> Thanks
>
> Frank
>
>
> example:
> SendEmail(Contact_id)
> SendEmail(employee_id)
>
>
|
|
|
|