|
 |
asp_cdo thread: RE: CDO properties and methods? Can someone please help?
Message #1 by "Siegfried Weber" <sweber@c...> on Fri, 7 Dec 2001 19:23:39 +0100
|
|
Check the CDO.HLP file (http://www.cdolive.com/cdo.htm for a download),
MSDN online about CDO 1.21 and http://www.cdolive.com/cdo10.htm for
additional information.
<Siegfried />
> -----Original Message-----
> From: Binu Mathew [mailto:binu_k_mathew@h...]
> Sent: Wednesday, November 28, 2001 4:50 AM
> To: ASP CDO
> Subject: [asp_cdo] CDO properties and methods? Can someone please
help?
>
> I know the basic methods to use when sending ASP email using CDONTS
for an
> SMTP server:
>
> Set newMailObj =3D CreateObject("CDONTS.Newmail")
> recipStr =3D "email@e..."
> newMailObj.To =3D recipStr
> newMailObj.Subject =3D "Check it out!"
> newMailObj.Body =3D "Here's some email for you"
> newMailObj.Send
>
> I cant seem to find any information on how to do so using CDO. I have
the
> following to create my CDO object:
>
> strProfileInfo=3D "server" & vbLf & "valid_account"
> Set newMailObj=3D CreateObject("MAPI.Session")
> newMailObj.Logon , , False, True, 0, True, strProfileInfo
>
> But I do not know the methods to use to specify recipients, subject,
body,
> and how to send. Can someone please help me out on this one? I would
> greatly appreciate it.
>
>
> Thanks,
>
> Binu
>
> binu_k_mathew@h...
>
$subst('Email.Unsub')
>
> Read the future with ebooks at B&N
>
http://service.bfast.com/bfast/click?bfmid=3D2181&sourceid=3D38934667&cat
ego
ry
> id=3Drn_ebooks
Message #2 by "Diane Schips" <info@M...> on Tue, 11 Dec 2001 12:33:52 -0800
|
|
Happy Holidays everyone!
I'm using the following script to send out email:
Sub newEmail (emFrom, emTo, emSubject, emTxt, emHtm)
Set objMsg = Server.CreateObject("CDO.Message")
With objMsg
.To = emTo
.From = emFrom
.Subject = emSubject
.HTMLBody = emHtml
.TextBody = emText
.ReplyTo = emFrom
.Organization = "Temple Beth Sholom of Smithtown"
End With
objMsg.Send
Set objMsg = Nothing
End Sub
As expected, I get the html email in Outlook, and a text version in Sierra's
Mailroom (my text email client). The problem that I have is with people who
have an email client that can recieve html, but who have the graphics option
turned off. I get back an error email saying:
Sorry webmaster@T... Your mail to <username> could not be delivered
because <username> is not accepting mail with attachments or embedded images
The problem is probably the logo image that I include - it's the same image
that is at the top of every webpage on the site, or maybe it's the
background page image. I include these two because I want the email to have
the same look as the website pages, especially the newsletter
(www.TBSofS.org/newsletter.asp if you want to see what images I'm talking
about) - hopefully to get more of our membership to visit the website.
BTW - how do I set my outlook to reject embedded images and attachments? Or
do i need a different email client? I'd like to be able to test for how
this will be dealt with before I send out 150 emails!
Thanks,
Diane
|
|
 |