HiI use this script in one of my agents. it’s work perfect but the problem is that if i use sender (se below)a get NO name in from? but if i use a Groupname a get it, any suggestion why?:
Set docMail = thisDb.createdocument
docMail.Form = "Memo"
sender="mail@sendto.com"
docMail.from=sender
docMail.SendTo = "mailtwo@sendto.com"
docMail.SMTPOriginator=sender
docMail.Principal=sender
docMail.Subject = "New document!"
' generate mail body
Set rtItemA = docFROM.getfirstitem("Body")
bodytext = rtItemA.GetFormattedText( True , 0 )
Set rtitemB = docMail.CreateRichTextItem("Body")
Call rtItemB.AppendText(Chr$(13))
Call rtItemB.AppendText("Kund: ")
Call rtItemB.AppendText(Chr$(13))
Call rtItemB.AppendText(docFROM.Company(0))
Call rtItemB.AppendText(Chr$(13))
… more script here!