Page 1 of 1

e-mail subject from variable/includes

Posted: 2011-05-23 16:32
by piripacchio
Hi all,
I've created a registration system using CS4 + ADDT 1.
The website is a multilinguage one so I devloped it using session checking and include the related language file.

ok. it works.

Now I need to customize the send e-mail behaviour so that it will send an e-mail with a dynamic subject.
The subject text is coming from a php variable ($myvariable['myvar']).

I changed the line:

Code: Select all

$emailObj->setSubject("this is the subject I would like to customize");
to:

Code: Select all

$emailObj->setSubject($myvariable['myvar']);
but the subject comes out empty.

Please note that the include is "included" at the top of the file so it should be available to the tng engine.

But probably I use the wrong syntax to do this.

Is there someone that knows the right syntax to do something similar?

TIA

tony

Re: e-mail subject from variable/includes

Posted: 2011-05-26 09:34
by Fred