I have a simple form that includes the following two fields:1 - Created_By Default Value @Name([CN];@UserName)
2 - Date_Created Default Value @Today
I would like to create an Action using the @MailSend command to send an email to the “Created_By” and reference the “Date_Created”.
Something like:
@MailSend(Created_By ; “” ; “” ; "Form Submitted on " : Date_Created; “” ; “” ; [INCLUDEDOCLINK])
This is not working. I am also unsure about any other @Commands that I need either before of after the @MailSend Command.
Any help would be greatly appreciated.
Subject: Action with @MailSend
You need to convert the Date_Created field to text@MailSend(Created_By ; “” ; “” ; "Form Submitted on " : @Text(Date_Created); “” ; “” ; [INCLUDEDOCLINK])
Subject: Action with @MailSend
Assuming that the created by field is an authors field then I wouldn’t store the name using [cn] but simply store @username for a start.
Secondly if the date field is indeed a date then you will need to @text it to combine it with a string, e.g.
assuming you want the date only:
"Form Submitted on " + @text(Date_Created;“S0”)
Subject: RE: Action with @MailSend
I have the action working in the Notes Client with
@MailSend(Created_By ; “” ; “” ; "Form Submitted on " + @Text(Date_Created) ; “” ; “” ; [IncludeDoclink])
However, I cannot get it to work in Internet Explorer.
I have also created an agent called “email” and run the agent with the following command
@Command([ToolsRunMacro]; “Email”)
I get the same result. I can run action/agent in the Notes Client but not in Internet Explorer.
I am missing something?
Subject: RE: Action with @MailSend
Do you have anonymous access enabled on the DB? Make the Created_By field editable and open the form in IE, what is listed in the field? I tested the same formula and it worked.
Subject: RE: Action with @MailSend
I do not have anonymous in the ACL. The Created_By field is editable. It has @Name([CN];@UserName) as the default value. Therefore, when I open it it in IE it has Shane Rowe in the field.
Are there any @Commands before or after that I am missing. Currently, I have the following commands:
@Command([FileSave]);
@MailSend(Created_By ; “” ; “” ; "Form Submitted on " + @Text(Date_Created) ; “” ; “” ; “”);
@Command([CloseWindow]);
@Command([OpenFrameset];“Wires”)
Subject: RE: Action with @MailSend
Is it not sending email or not going to the frame set? I testes your commands and it sent email and took me to correct frame set. Do you see any errors on the server console, assuming you are doing this on a server copy.
Subject: RE: Action with @MailSend
check this TN, it might be default view.
http://www.ibm.com/support/docview.wss?rs=899&uid=swg21090662