DAVID POWELL
Senior Member
- Outlook version
- Outlook 2010 32 bit
- Email Account
- Exchange Server
I have a snippet code to send a "Custom Form"(Organization Forms Library).
I want to change the "From" to NOT display my name but something like "Sales Support".
I cant use "sendonbehalfof"- read only property
I cant use a delegate.
Really limited on what to do ?
Dim strForm As String
Dim objFolder As Folder
Dim objItem As Outlook.MailItem
'Dim objRecip As Recipient
Dim strBcc As String
Dim objMail As Outlook.MailItem
Dim objRecip As Outlook.Recipient
'strBcc = "xxxx@xxxger.com"
strForm = "IPM.Note.proposalm"
Set objFolder = _
Application.ActiveExplorer.CurrentFolder
Set objItem = _
objFolder.Items.Add(strForm)
objItem.To = "xxxxxx@xxxxxger.com"
Set objRecip = objItem.Recipients.Add(strBcc)
objRecip.Resolve
If objRecip.Resolved Then
objRecip.Type = olBCC ' 3
End If
objItem.Subject = "Proposal Survey. Please Respond."
objItem.Send
' objItem.Display
Item_Open = True
Thanks
David
I want to change the "From" to NOT display my name but something like "Sales Support".
I cant use "sendonbehalfof"- read only property
I cant use a delegate.
Really limited on what to do ?
Dim strForm As String
Dim objFolder As Folder
Dim objItem As Outlook.MailItem
'Dim objRecip As Recipient
Dim strBcc As String
Dim objMail As Outlook.MailItem
Dim objRecip As Outlook.Recipient
'strBcc = "xxxx@xxxger.com"
strForm = "IPM.Note.proposalm"
Set objFolder = _
Application.ActiveExplorer.CurrentFolder
Set objItem = _
objFolder.Items.Add(strForm)
objItem.To = "xxxxxx@xxxxxger.com"
Set objRecip = objItem.Recipients.Add(strBcc)
objRecip.Resolve
If objRecip.Resolved Then
objRecip.Type = olBCC ' 3
End If
objItem.Subject = "Proposal Survey. Please Respond."
objItem.Send
' objItem.Display
Item_Open = True
Thanks
David