Solved

Access sending emails to exchange Server

Posted on 2014-11-30
9
202 Views
Last Modified: 2014-12-05
Hi,
I have developed an app which is used to create Reports in Word 2010 and then when the report is completed it can then be sent to the email sever either by the user select different Groups and/or users. With speacial reports (eg; Accident reports) the user has no choice as to who to email these reports are emailed to. They are automatically sent to predefined groups as determined by management. So far this app has created and emailed over 70k reports with no major hiccups. I have 120 users on the system, 73 different types of reports and 51 different email groups and users that are defined for this system. This system has been in place for 5+ years and has been stable, Until now.

I have created a new template (Word 2010) and the process of creating the report ready to be emailed off works fine. This report is to be automatically emailed and is waiting to be emailed as normal. when the User clicks on the email button the Report disappears from the screen and a success message is returned by the email  sever. The problem is that the email and attachment never gets to the users listed in the predefined group. If I change the group_ID to any other predefined group in the system, the email & attachment goes through to the users intended.

Any Ideas will be of great help

thanks
wheelie26
0
Comment
Question by:Wheelie26
  • 4
  • 4
9 Comments
 
LVL 23

Expert Comment

by:Michael74
Comment Utility
Some thoughts

Have you tried manually sending an email to same email addresses (or email group) as used by the code eg in outlook to test the addressing

Is this report larger than the others, possibly it is too large to be sent

Is it in docm format. Mail server could be rejecting macro enabled files
0
 

Author Comment

by:Wheelie26
Comment Utility
Sending an email to users/groups as used by the code ---works

Smaller report, very basic fields that need to be completed.

All reports saved as *.doc for backwards compatability


Thanks
for the thoughts

Wheelie26
0
 
LVL 23

Expert Comment

by:Michael74
Comment Utility
Rereading your description it sounds like the problem is in the email group as it is working when other groups are selected.

Is this a mail server defined group or a list of email addresses logically grouped in the code. If the latter is this predefined or created at runtime.

Can you step through the code to check the address fields to check for errors or access exchange to check the email and the error logs?
0
 

Author Comment

by:Wheelie26
Comment Utility
Hi,
The email group itself is setup in Exchange. All I do is pass the name of the user or group name to the Server. I have even copied the name from the address book of Exchange to ensure that the spelling is correct. This is the same process for every other report.
0
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 23

Expert Comment

by:Michael74
Comment Utility
The error you are encountering still suggests that the problem is in the group because otherwise changing the group would not have an effect.

I would step through the code to check the address field at runtime and use a watch to capture the exact string as it is being entered so that you can use a text editor to check for additional whitespace, especially non-printable whitespace such as line returns and tabs. Notepadd++ is good for this as you can have it display these characters as symbols.
0
 

Author Comment

by:Wheelie26
Comment Utility
Hi Michael,

I have stepped thru the code and no errors or extra whitespaces appear.
I am using Access 2010, Word 2010, Exchange 2010 and Microsoft CDO for Windows 2000 libary to wrap & create the email package/message that I then send of to Exchange Server.
All email users are using Outlook Web App.

Then I found while searching that CDO 1.2.1 is not compatible with Outlook 2010, would this cause my problems????

Thanks for all your help
Scott
0
 
LVL 23

Expert Comment

by:Michael74
Comment Utility
I would have thought that if that was an issue it would have broken all of the forms not just one group on one form.

What happens if assign this email group to another form?
0
 

Accepted Solution

by:
Wheelie26 earned 0 total points
Comment Utility
Haven't tried to assign to another form but will try that, when I assign the form/report to another Group all works well

*** Added by eenookami:
Has been solved here: http://www.experts-exchange.com/Software/Server_Software/Email_Servers/Exchange/Q_28572639.html#a40476802
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

This article will show, step by step, how to integrate R code into a R Sweave document
"Disruption" is the most feared word for C-level executives these days. They agonize over their industry being disturbed by another player - most likely by startups.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now