Re: Senders email using MAPI
I did a search for mapi mail client and one of the hits was this one. Does that help?
Re: Senders email using MAPI
Hi Martin, thanks for the reply, it does kind point me in the right direction altho im doing it differently to that code in the link and i cant figure out what i need to do to the way im doing it to get it to do the same.
my code is:
VB Code:
Private Sub CommandEmail_Click()
'MAPISession1.UserName = EmailFrom
'MAPISession1.Password = Password
MAPISession1.SignOn
MAPIMessages1.a
If Err.Number = 0 Then
For Index = 0 To UBound(Email)
With MAPIMessages1
.SessionID = MAPISession1.SessionID
.Compose
.RecipAddress = Email(Index)
.ResolveName
'For a second addressee add:
' .RecipIndex = 1
' .ResolveName
' Might need to add:
' .AddressResolveUI = True
.MsgSubject = EmailSubject
.MsgNoteText = RichTextBox1.Text
'.AttachmentIndex = 0
'.AttachmentPosition = 0
'.AttachmentPathName = ""
.Send
End With
Next
End If
MAPISession1.SignOff
End Sub
I may have to use winsock as i cant see any properties that will allow me to change the senders details.
:confused: