HiWe are using a Domino web based workflow application. Depending on the status of the request application will send emails to appropriate people. The email send functionality is developed using a custom lotus script code.
Here is the funstion code:Sub sendEmail(db As NotesDatabase, to_fld As Variant, from_fld As Variant, cc_fld As Variant, bcc_fld As Variant, subject_fld As Variant, body_fld As Variant)
Messagebox “sendEmail” 'error checking
Dim sess2 As New NotesSession
Dim db2 As NotesDatabase
Dim newdoc As NotesDocument
Set db2 = sess2.GetDatabase(“”, “mail.box”)
Dim numadd As Integer
Dim finnumadd As Integer
numadd = 0
If Isarray(to_fld) Then
Forall r In to_fld
numadd = numadd + 1
End Forall
Else
numadd=1
End If
finnumadd = numadd + 2
Redim temprecipients (finnumadd) As Variant
Dim count As Integer
count = 0
If Isarray(to_fld) Then
Forall w In to_fld
temprecipients(count) = w
count = count + 1
End Forall
Else
temprecipients(count) = to_fld
End If
temprecipients(count+1) = cc_fld
temprecipients(count +2) = bcc_fld
Set newdoc = db.CreateDocument
newdoc.Form = “Memo”
newdoc.SendTo = to_fld
newdoc.Recipients = temprecipients
newdoc.CopyTo = cc_fld
newdoc.BlindCopyTo = bcc_fld
newdoc.Subject = subject_fld
newdoc.Body = body_fld
newdoc.ReturnReceipt = 1
Call newdoc.Save(False, True)
Call newdoc.CopyToDatabase(db2)
Call newdoc.Remove(True)
End Sub
and I called function as follows:
sendEmail db, doc.qa_manager(0), “Test Administrator”, “”, “”, “NOTIFICATION”, “Approved”
here is my problem:
When I send email with in my organization its working and when I gave the forwarding address as my personal yahoo id then also still working!!! I dont know how its working it would be good if some body can explain.
Also when I sent the email this is how it looks:
From: Test_Administrator.Domainname@mailsevername
To:Viswa_Ganti.domainname@mailservername(Assuming Viswa Ganti is qa_manager(0))
I cant able find anything in the code how its attaching domainname and mailserver name!!! But still my yahoo id receives email and how underscore is coming i.e Viswa_Ganti
Thanks
Viswa