7 replies
by p_bristow
by ax435
by kelsaidi
If you do not send attachements and you do not use DistList Then Check this code I made for you:
'place this code using outlook tools - macro - VB
'(IT WORKS)
Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
Dim SweetMail As MailItem
If Item.Recipients.Count < 2 Then Exit Sub
If Item.Attachments.Count > 0 Then Exit Sub
N% = MsgBox("Do you want to send separate mail message to each Recipient", vbQuestion + vbYesNo)
If N% <> vbYes Then Exit Sub
N% = Item.Recipients.Count
For i% = 1 To N%
Set SweetMail = CreateItem(olMailItem)
With SweetMail
.Subject = Item.Subject
.Body = "Copia " & i% & Item.Body
Set myRecipient = .Recipients.Add(Item.Recipients.Item(i%).Name)
If Not myRecipient.Resolve Then
.Display
Else
.Send
End If
End With
Set SweetMail = Nothing
Set myRecipient = Nothing
Next
by ax435
by suemvp
by ax435
by ax435
This discussion is closed to new replies.
Trending Software posts
Sort by Trending