hello everybody,can some one give me some hints on how to develop the functionnality: " send to a friend".
there will be a button in some of the pages of the site that sends a mail with the url of the page to a recipient that the user must enter.
will the function @mailsend work?
thanx in advance
Subject: send to a friend
If memory serves me correctly@mail send will not work on the web
You will have to use LotusScript or Java in an agent
send me an e-mail if you need code to do that
Subject: send to a friend
I wouldn’t use YOUR web server to send the email link like some sites do - you’re opening yourself up to having your server used by spammers.
Let the user’s compter do the work for you - you can use their email program to load up a mail message ready for your user to send from their own computer. To do this include HTML in your web page as follows:
<A HREF="mailto:?subject=aaa&body=bbb>Send this page to a friend
where:
aaa = email subject line
bbb = body text (you can use computed text here, to generate the html for a link back to your current web page, eg your computed text might be:
baseURL1 := @Replacesubstring (@Subset ( @DBName; -1); “\”; “/”);
baseURL2 := @If (
@Begins (baseURL1; “/”); baseURL1;
“/” + baseURL1);
“<a href="http://www.[yourdomain]” + baseURL2 + “/0/” + @Text(@DocumentUniqueID) + “">Click here”
[Note: for the link above to work, you need to ensure one view in your database has the “Default view” property set.]
Do a google search on MAILTO SUBJECT HTML you’ll find heaps of resources, eg email tips and tricks for the mailto tag and html forms for your website