Hi All,
I have faced problem that mail not send from backed when agent called but when i run this agent manually mail send here is my code can any one help me for this problem
Print “Inside mail Send”
Set MDoc = Db.CreateDocument
MDoc.Form = "Memo"
Set rtitem = New NotesRichTextItem(MDoc, "Body")
MDoc.Subject = "Allotments Not Consumed"
Set richStyle = S.CreateRichTextStyle
richStyle.Bold = True
Call rtitem.AppendStyle(richstyle)
Call rtitem.AppendText("Allotments cannot be consumed for ref no " & TDoc.ReferenceNo(0) & " as Site Minder Restriction is there")
MDoc.SendTo = "Amar Kumar Das/Tumlare"
Call MDoc.Send(True)
Print "Mail Send"
TDoc.Status="Not Yet Booked"
Call Tdoc.Save(True,False)
continue=False
Exit Sub
Subject: Mail not send when agent called from backend
Any errors show up in log.nsf. Put some error trapping or print statements and see what the last line it prints.
Subject: RE: Mail not send when agent called from backend
Dear Barry,
I have already checked this before and after mail send i added print statement and it prints also and no error show
Print “Before Mail Send”
Call MDoc.Send(True)
Print “After Mail Send”
Subject: RE: Mail not send when agent called from backend
What does the log.nsf show? Do you get a delivery failure to the id that signed the agent? Is the email stuck in mail.box? Try appending the domain on to the email address
Subject: RE: Mail not send when agent called from backend
I think in Server where i have send mail this mail send functionality not enable , but not sure so let me check
Subject: If the server doesn’t have mail routing enabling
Then the mails will be sitting in mail.box. You can’t expect an agent to send an email if the server isn’t routing them.