troubleshooting Question

Access, CDO and Exchange

Avatar of loybob
loybobFlag for United States of America asked on
Microsoft AccessExchange
4 Comments1 Solution847 ViewsLast Modified:
I'm setting up a button on an Access form in my Access application to send an email.  I have this code working perfectly on my pc, using my Outlook 2007 and pop3 email from Verizon - it attaches the report and sends the email.

=============================

 Set objCDO = CreateObject("CDO.Message")

objCDO.From = fromEmail
objCDO.To = DsStatusData![Email]
objCDO.Subject = "Status Report from Smith Consulting"
objCDO.TextBody = "Please see the attached Status Report - It can be opened with Microsoft Word.  Please reply to this email and attach the completed form."
objCDO.AddAttachment ("F:\TABS\Status Reports\StatusReportEmail.rtf")

With objCDO.Configuration
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpauthenticate") = 1
.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "email@verizon.net"
.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.verizonemail.net"

.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpusess1") = False
.Fields.Update
End With

objCDO.Send

Set objCDO = Nothing

==============================

My user is using Exchange 2010, and on her system I'm using:

.Fields("http://schemas.microsoft.com/cdo/configuration/sendusername") = "email@smithllc.com"
.Fields("http://schemas.microsoft.com/cdo/configuration/sendpassword") = "password"
.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "sbs.smithllc.local"

When the code running on her system gets to

objCDO.send

I get  "Execution of this Application has stopped due to a run-time error, the application can't contiune and will be shut down."

Is there something that needs to be configured in her Exchange server?  
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros