I am having the weirdest issue and I don't know if its related to MS Access or MS Outlook. Here's the simple scenario.
I have a sendEmail Function that works.. what I mean is the code sends the information from MS Access to Outlook and saves the item as a draft. That part works fine.
getRDistroList is a public function that loops thru a table of emails and makes a string for the bcc column in the outlook message. It is a string and it formats the email addresses correctly ie: "name@somedomain.com;name@someotherdomain.com"
When I go to my outlook Drafts to send the item, it sends but then I receive the following system undeliverable message:
"None of your e-mail accounts could send to this recipient."
But if I type the same email addresses into Outlook manually, the email sends without any issues.
I can't determine if this is an ms access issue or an outlook issue. Does anyone have any ideas as to what could be going on? Any help is greatly appreciated.
I have a sendEmail Function that works.. what I mean is the code sends the information from MS Access to Outlook and saves the item as a draft. That part works fine.
Code:
With olMailItem
.bodyFormat = olFormatHTML
.to
.bcc
.attachments.add(vattach)
.save
End With
Call Sendemail, rpttemplate,,getRDistroList
getRDistroList is a public function that loops thru a table of emails and makes a string for the bcc column in the outlook message. It is a string and it formats the email addresses correctly ie: "name@somedomain.com;name@someotherdomain.com"
When I go to my outlook Drafts to send the item, it sends but then I receive the following system undeliverable message:
"None of your e-mail accounts could send to this recipient."
But if I type the same email addresses into Outlook manually, the email sends without any issues.
I can't determine if this is an ms access issue or an outlook issue. Does anyone have any ideas as to what could be going on? Any help is greatly appreciated.