cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Madu" <andrewm...@gmail.com>
Subject HowTo obtain ISP smtp address via server/environment variables
Date Sat, 17 Feb 2007 11:20:24 GMT
Hi,
I have the following line in my flow document:

var sendEmail = SimpleEmail.send('smtp.ntlworld.com',userGlobal.getEmail(),'
sales@acim.com','Your Receipt',receipt());

Instead of having to hard code the smtp address, in this case '
smtp.ntlworld.com', is there a server/environment variable that I can pull
this value from within flowscript? So my line will now look something like:

var sendEmail = SimpleEmail.send(cocoon.getISPsmtp,userGlobal.getEmail(),'
sales@acim.com','Your Receipt',receipt());

--
Regards

Andrew

Mime
View raw message