If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Perl and the DBI > sendEmail problem sending

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 11-14-06, 09:34
B&R B&R is offline
Registered User
 
Join Date: Feb 2004
Posts: 138
sendEmail problem sending

I am not a programmer but I have been using a module in Access that a friend wrote. The code ran sendEmail and sent out reports. This program has run fine on one database for quite a while. I am now using it on another database and I seem to have continuing problems. I have had it working for over a month each night and now I am having problems. I can run the module manually and it saves the document to the right place and then it shows a box that it is sending the document but I never receive it. This is on a server. The other database is still working fine.

Any suggestions?

Thanks,
B&R
Reply With Quote
  #2 (permalink)  
Old 11-14-06, 15:47
MCrowley MCrowley is online now
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
Does the file get created when the code runs automatically?
Reply With Quote
  #3 (permalink)  
Old 11-14-06, 16:00
B&R B&R is offline
Registered User
 
Join Date: Feb 2004
Posts: 138
It automatically outputs a report in access to rtf format and saves it in a folder. It then sends it from that folder. Here are the last two lines of the code.

DoCmd.OutputTo acOutputReport, Report, acFormatRTF, "C:\Access Database\" & Report & ".rtf"

' Send report
Shell """" & "C:\Access Database" & "\sendEmail.exe"" -s " & Server & " -f " & Sender & " -t " & Recipient & " -u """ & Subject & """ -m """ & Message & """ -a """ & "C:\Access Database" & "\" & Report & ".rtf" & """", vbHide
Reply With Quote
  #4 (permalink)  
Old 11-14-06, 16:25
MCrowley MCrowley is online now
Wage drone 24601
 
Join Date: Jan 2003
Location: Massachusetts
Posts: 4,899
This looks suspicously VB-ish, and un-PERL like. Still, have any of the recipients recently had their email address changed, or removed?
Reply With Quote
  #5 (permalink)  
Old 11-14-06, 16:48
B&R B&R is offline
Registered User
 
Join Date: Feb 2004
Posts: 138
Maybe it is VB. A friend wrote it for me to use. The email addresses are correct. I believe the code is correct but maybe something in the server mail or something like that. I runs some nights and some it does not. I had it running for over a month and then it starts skipping. Makes me think the code is good. A hard thing to ask for advice but I thought I would try.

Any thoughts are appreciated!
B&R
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On