Hi Guy's, can you help with this one please ?
I have recently changed/setup an email address to a new account
Changed form Microsoft Exchange to IMAP/SMTP, this is for website reasons
I have 3 accounts
Dave@ Company A
Accounts@ Company A
info@ Company B
When these were all setup with Microsoft Exchange, all worked great
When this was Exchange, my email out account can be either of the 3 accounts
Code:
Set myItem = myApp.CreateItem(olMailItem)
Set OutAccount = myApp.Session.Accounts.Item(3) ' PROBLEM WITH USING OUT GOING MAIL SINCE CHANGING TO IMAP/SMTP ############
With myItem
.To = strMailTo
.Subject = Replace(strMake & Me.txtEnq, Chr(32), Chr(8))
.Body = strMailIn & _
wkr & "<br>" & "<br>" & _
User
.SendUsingAccount = OutAccount ' PROBLEM WHEN USING INFO@ as out account
.Display
End With
I can remove (3) from out account and type the email address in between quotes which then does send email from info@, however:
selecting 3 isn't listed since change of email server
when an email is received, it had various characters (nearly unreadable)
I if a remove Out Account all together, email will refer to default account which i believe is correct then the email reads normal
Is there anything you great people can advise ?
is there something in the reference library that would fix this ?
or
is the only answer to refer back to Exchange Server ?
Thank you guy's