PC Review


Reply
Thread Tools Rate Thread

Can't send email from Excel with CDO

 
 
robotman@gmail.com
Guest
Posts: n/a
 
      11th Nov 2006
I'm trying to send a simple email from excel. No attachments. I
downloaded this script using CDO (???), but when it goes to send the
email (at .send) , I get the following error:

--> The "SendUsing" configuration is invalid. <---

Can anyone help?!

Thanks.

John

___

Sub Mail_Small_Text()
Dim iMsg As Object
Dim iConf As Object
Dim strbody As String
' Dim Flds As Variant

Set iMsg = CreateObject("CDO.Message")
Set iConf = CreateObject("CDO.Configuration")

strbody = "Hi there" & vbNewLine & vbNewLine & _
"This is line 1" & vbNewLine & _
"This is line 2" & vbNewLine & _
"This is line 3" & vbNewLine & _
"This is line 4"

With iMsg

Set .Configuration = iConf
.To = "(E-Mail Removed)"
.CC = ""
.BCC = ""
.From = """Joe Smith"" <(E-Mail Removed)>"
.Subject = "Important message"
.TextBody = strbody
.Send ' <----GETS ERROR HERE
End With

Set iMsg = Nothing
Set iConf = Nothing
End Sub

 
Reply With Quote
 
 
 
 
Franz Verga
Guest
Posts: n/a
 
      11th Nov 2006
(E-Mail Removed) wrote:
> I'm trying to send a simple email from excel. No attachments. I
> downloaded this script using CDO (???), but when it goes to send the
> email (at .send) , I get the following error:
>
> --> The "SendUsing" configuration is invalid. <---
>
> Can anyone help?!
>

[cut]

Hi John,

try here:

http://www.rondebruin.nl/sendmail.htm




--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


 
Reply With Quote
 
Ron de Bruin
Guest
Posts: n/a
 
      13th Nov 2006
Read the information on my CDO page John
http://www.rondebruin.nl/cdo.htm

--
Regards Ron de Bruin
http://www.rondebruin.nl



<(E-Mail Removed)> wrote in message news:(E-Mail Removed)...
> I'm trying to send a simple email from excel. No attachments. I
> downloaded this script using CDO (???), but when it goes to send the
> email (at .send) , I get the following error:
>
> --> The "SendUsing" configuration is invalid. <---
>
> Can anyone help?!
>
> Thanks.
>
> John
>
> ___
>
> Sub Mail_Small_Text()
> Dim iMsg As Object
> Dim iConf As Object
> Dim strbody As String
> ' Dim Flds As Variant
>
> Set iMsg = CreateObject("CDO.Message")
> Set iConf = CreateObject("CDO.Configuration")
>
> strbody = "Hi there" & vbNewLine & vbNewLine & _
> "This is line 1" & vbNewLine & _
> "This is line 2" & vbNewLine & _
> "This is line 3" & vbNewLine & _
> "This is line 4"
>
> With iMsg
>
> Set .Configuration = iConf
> .To = "(E-Mail Removed)"
> .CC = ""
> .BCC = ""
> .From = """Joe Smith"" <(E-Mail Removed)>"
> .Subject = "Important message"
> .TextBody = strbody
> .Send ' <----GETS ERROR HERE
> End With
>
> Set iMsg = Nothing
> Set iConf = Nothing
> End Sub
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Send email from excel to notes - save email in sent folder Boss Microsoft Excel Programming 0 15th Mar 2010 01:52 PM
send email to each customer email in excel sheet. -keevill- Microsoft Excel Misc 3 17th Jul 2008 02:33 PM
Excel VBA macro to send email attachment from default email client wifigoo Microsoft Excel Programming 2 12th Apr 2008 03:54 PM
Send data from Excel in email from specific email address Erik Microsoft Excel Programming 5 5th Dec 2007 05:09 PM
Send email to email addressess in Excel Sheet Darrell Microsoft Outlook Contacts 2 18th Sep 2006 12:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:31 PM.