*Create the Notes object SESSION=CREATEOBJECT("NOTES.NOTESSESSION") m.mailfile=SESSION.GetEnvironmentString("MailFile",.T.) m.MailServer=SESSION.GetEnvironmentString("MailServer",.T.) DB=SESSION.GetDatabase(M.MailServer,m.mailfile) DOC=DB.CreateDocument() DOC.FORM="Memo" DOC.Subject="Certificate No. "+.txtCertnum.VALUE +; "("+.Qdmsbasepgf1.Page1.txtMatl.VALUE+")" DOC.Body="Attached is Certificate No. "; +.txtCertnum.VALUE +" for "+.txtMatl.VALUE+" as you requested."; +CHR(13)+" "+CHR(13)+; "If you have any further questions, please contact me at the number listed below." DOC.FROM=SESSION.UserName DOC.SEND(.F.,recipients) DOC.SAVE(.T.,.T.)Thanks!