The following agent is not scheduled, but kicked off by me.
It has been working just fine for about 6 months – now it doesn’t work anymore. Actually, the only thing that it doesn’t do is set the Notified field to “Yes” which is the last thing. I’ve even tried moving it up a few lines, but that didn’t change anything.
Does anyone have any suggestions or see any problems with the code?
@If(@IsAvailable(Notified); @Return(“”); “”);
sendTo := email;
copyTo := “_us.d.webregadmin”;
blindcopyTo := “Lisa Vincent”;
subject := “Siplast Registration Confirmation”;
remark := “”;
note := +@NewLine+@NewLine+““+@NewLine+@NewLine+“NOTE: For security purposes, server sessions are limited to approximately one hour. Session time begins at login, but is reset each time a user saves or submits an On-line Guarantee Application using the buttons ‘Save Draft’ or ‘Submit Request’ on the application. After one hour, server sessions are automatically dropped and users will need to re-login to continue. However, if the session is dropped before you have had an opportunity to select the ‘Save Draft’ or ‘Submit Request’ buttons, all unsaved information will be lost. To avoid this, save your information often by using the ‘Save Draft’ button on the form.”+@NewLine+@NewLine+””;
mailbody := "Dear " + firstname + “:” + @NewLine + @NewLine+ “Your Siplast Registration has been successfully processed.”+@NewLine + @NewLine + "Your username is: " + FullName+@NewLine + "Your password is: " + NewPassword+ @NewLine + @NewLine + “If you need to update this information, use our Registration page at: http://www.siplast-icopal.com/webreg.nsf/regchoice” + @NewLine + @NewLine + “Follow this link to Login: http://www.siplast.com” +@NewLine+@NewLine+ “Thanks for visiting our site!”+note;
@MailSend( sendTo ; copyTo ; blindcopyTo ; subject ; ""; mailbody);
FIELD Notified := “Yes”;