Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Mail Sending Error

We are using the script below to send an email upon closing a
workbook. Some users are having issues on the .Send line and the email
never gets sent. All users are on the same exchange server with the
same domain with the same email program (Outlook 2003). Can anyone
think of settings or issues that may prevent this from sending?

With iMsg
Set .Configuration = iConf
.To = "
.CC = activepmeml
.BCC = ""
.From = activepmeml
.Subject = trdcheck & " trade(s) ready for execution in " +
activepm + "'s Equity Queue"
.TextBody = ""
On Error GoTo m:
.Send
End With
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Mail Sending Error

You use CDO I see and MS not support CDO for win 2000.
http://www.rondebruin.nl/cdo.htm

Btw: CDO is not using Outlook

Do you have the same problem if you use Outlook object model code ???
http://www.rondebruin.nl/cdo.htm


--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"mburkett" wrote in message ...
We are using the script below to send an email upon closing a
workbook. Some users are having issues on the .Send line and the email
never gets sent. All users are on the same exchange server with the
same domain with the same email program (Outlook 2003). Can anyone
think of settings or issues that may prevent this from sending?

With iMsg
Set .Configuration = iConf
.To = "
.CC = activepmeml
.BCC = ""
.From = activepmeml
.Subject = trdcheck & " trade(s) ready for execution in " +
activepm + "'s Equity Queue"
.TextBody = ""
On Error GoTo m:
.Send
End With

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 23
Default Mail Sending Error

On Jan 6, 3:12*pm, "Ron de Bruin" wrote:
You use CDO I see and MS not support CDO for win 2000.http://www.rondebruin.nl/cdo.htm

Btw: CDO is not using Outlook

Do you have the same problem if you use Outlook object model code ???http://www.rondebruin.nl/cdo.htm

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm



"mburkett" wrote in ...
We are using the script below to send an email upon closing a
workbook. Some users are having issues on the .Send line and the email
never gets sent. All users are on the same exchange server with the
same domain with the same email program (Outlook 2003). Can anyone
think of settings or issues that may prevent this from sending?


With iMsg
* * * *Set .Configuration = iConf
* * * *.To = "
* * * *.CC = activepmeml
* * * *.BCC = ""
* * * *.From = activepmeml
* * * *.Subject = trdcheck & " trade(s) ready for execution in " +
activepm + "'s Equity Queue"
* * * *.TextBody = ""
* * * *On Error GoTo m:
* * * *.Send
* *End With


I haven't tried the Outlook model code. Do you have a link with some
sample code? If the code I pasted has an error I use the code below
which works on everyone's machine though I suspect this is pretty
inefficient as I have to create a dummy Excel file to send.

Application.Dialogs(xlDialogSendMail).Show ",
Arg2:=trdcheck & " EQ trades ready for execution in " + activepm + "'s
queue."
Workbooks("tempfisend.xls").Close SaveChanges:=False
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,123
Default Mail Sending Error

See the second link that I posted

--

Regards Ron de Bruin
http://www.rondebruin.nl/tips.htm


"mburkett" wrote in message ...
On Jan 6, 3:12 pm, "Ron de Bruin" wrote:
You use CDO I see and MS not support CDO for win 2000.http://www.rondebruin.nl/cdo.htm

Btw: CDO is not using Outlook

Do you have the same problem if you use Outlook object model code ???http://www.rondebruin.nl/cdo.htm

--

Regards Ron de Bruinhttp://www.rondebruin.nl/tips.htm



"mburkett" wrote in ...
We are using the script below to send an email upon closing a
workbook. Some users are having issues on the .Send line and the email
never gets sent. All users are on the same exchange server with the
same domain with the same email program (Outlook 2003). Can anyone
think of settings or issues that may prevent this from sending?


With iMsg
Set .Configuration = iConf
.To = "
.CC = activepmeml
.BCC = ""
.From = activepmeml
.Subject = trdcheck & " trade(s) ready for execution in " +
activepm + "'s Equity Queue"
.TextBody = ""
On Error GoTo m:
.Send
End With


I haven't tried the Outlook model code. Do you have a link with some
sample code? If the code I pasted has an error I use the code below
which works on everyone's machine though I suspect this is pretty
inefficient as I have to create a dummy Excel file to send.

Application.Dialogs(xlDialogSendMail).Show ",
Arg2:=trdcheck & " EQ trades ready for execution in " + activepm + "'s
queue."
Workbooks("tempfisend.xls").Close SaveChanges:=False
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sending mail to different mail address based on cell value Duncan Excel Programming 3 August 25th 09 03:40 PM
Error when sending mail with CDO Amedee Van Gasse Excel Discussion (Misc queries) 5 November 28th 08 01:51 PM
Error sending sheet in mail body Corey Excel Programming 2 August 23rd 07 01:51 AM
General mail failure when sending e-mail from Excel Adrienne Excel Discussion (Misc queries) 5 November 4th 05 12:59 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"