Mannually set up {var} for email template

pi picsoung 14 Feb, 2009
Hey😀
again it's me with a simple/easy question😛

i would like to create a form be just to use the sendmail method include in the component.
So no need to display fields.

I got an email template looks like

Heading
blabalabla

your name {name}
your username {user}
... blabla...



i would like to send through this form informations taken form the database.
and replace {name} by a $name and so on.

So how can i do that with out any form template just using php ?
and another question how can i send an email without any "submit button" ?

thanks😉

Nico
PS: maybe it would be helpfull a litte FAQ section with all my newbies question, i think it would help many users😉
Gr GreyHead 14 Feb, 2009
Hi picsoung,

When are these emails going to be sent if there is no submit button??

Bob
pi picsoung 14 Feb, 2009
they will be send after doing some stuff in the database.

in fact my "form" do that :
-Update a record in the database depending on an id passed by URL (myform&id= " ")
-redirection to another page

So i wan to send a email between the two steps.
With all the informations linked to the "id" passed by URL
Then redirect to another page.

So it's a kind of "fake form"😛

see the point ?
Gr GreyHead 14 Feb, 2009
Hi picsoung,

Yes you can do that without any template. Just copy over the code that ChronoForms uses into your OnSubmit code and modify it to do what you want.

Bob
pi picsoung 15 Feb, 2009
i dont really follow your idea..face-meh-blank

can you be more explicit please ?🙂

thanks😉
Gr GreyHead 15 Feb, 2009
Hi Picsoung,

Sorry - I meant to write - without any 'template' (now corrected).

Bob
This topic is locked and no more replies can be posted.