For Programmers: Free Programming Magazines  


Home > Archive > ASP > November 2005 > CDO Message help









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author CDO Message help
Shamaila

2005-11-22, 6:55 pm

Hi I am using a similar code to send a cdo messag ei was wondering if
the below code will function w/o setting the
cdoconfig.fields
..Item(sch &"sendusing")=2
..Item(sch &"smtpserver")=<enter_mail.server_here>
..update


<%


Set cdoConfig = CreateObject("CDO.Configuration")
Set cdoMessage = CreateObject("CDO.Message")


With cdoMessage
Set .Configuration = cdoConfig
..From = "pablo.enriq...@jci.com"
..To = "pablo.enriq...@jci.com"
..Subject = "Sample CDO Message"
..TextBody = "This is a test for CDO.message"
..Send
End With


Set cdoMessage = Nothing
Set cdoConfig = Nothing
%>


Please help
Shamaila

PJones

2005-11-27, 3:55 am

http://www.powerasp.com/content/new...mail_cdosys.asp


"Shamaila" <SRafiq@opinionsite.com> wrote in message
news:1132696239.415572.8280@o13g2000cwo.googlegroups.com...
> Hi I am using a similar code to send a cdo messag ei was wondering if
> the below code will function w/o setting the
> cdoconfig.fields
> .Item(sch &"sendusing")=2
> .Item(sch &"smtpserver")=<enter_mail.server_here>
> .update
>
>
> <%
>
>
> Set cdoConfig = CreateObject("CDO.Configuration")
> Set cdoMessage = CreateObject("CDO.Message")
>
>
> With cdoMessage
> Set .Configuration = cdoConfig
> .From = "pablo.enriq...@jci.com"
> .To = "pablo.enriq...@jci.com"
> .Subject = "Sample CDO Message"
> .TextBody = "This is a test for CDO.message"
> .Send
> End With
>
>
> Set cdoMessage = Nothing
> Set cdoConfig = Nothing
> %>
>
>
> Please help
> Shamaila
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com