Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - trying to send emails using cdonts
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

trying to send emails using cdonts

 Post Reply Post Reply
Author
Charmaine View Drop Down
Newbie
Newbie


Joined: 25 June 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Charmaine Quote  Post ReplyReply Direct Link To This Post Topic: trying to send emails using cdonts
    Posted: 25 June 2003 at 5:21pm

hi

I was going through the ASP Web Based Email Using Microsoft's CDONTS tutorial on this site and when running the examples , the email is never received. The receiving address was replaced as specified and since i am using it on winXP  i also downloaded and registered the cdonts.dll however i never receive any emails No errors are given though .. any ideas why this is happening ? 

greatly appreciated

Charmaine Cry

Back to Top
Bullschmidt View Drop Down
Groupie
Groupie


Joined: 31 May 2003
Location: United States
Status: Offline
Points: 72
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bullschmidt Quote  Post ReplyReply Direct Link To This Post Posted: 27 June 2003 at 12:05am

You might try switching from CDONTS (which is being phased out) to the newer CDO such as can be seen in the E-mail Attachment example at http://www.asp101.com/samples

J. Paul Schmidt, Freelance ASP Web Developer
www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Sample (Freely Downloadable)
Back to Top
Charmaine View Drop Down
Newbie
Newbie


Joined: 25 June 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Charmaine Quote  Post ReplyReply Direct Link To This Post Posted: 10 July 2003 at 4:10am

i did try use CDO but it keeps giving me the error

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/test/cdonts1.asp, line 10

Invalid class string

which keeps poitning to  Set Mailer = Server.CreateObject("CDO.Message")

Confused

is there something i am missing out pls?

 

thanks agfain

Charmaine

Back to Top
Bunce View Drop Down
Senior Member
Senior Member
Avatar

Joined: 10 April 2002
Location: Australia
Status: Offline
Points: 846
Post Options Post Options   Thanks (0) Thanks(0)   Quote Bunce Quote  Post ReplyReply Direct Link To This Post Posted: 11 July 2003 at 5:20am

Search examples using CDOSYS.

Also check what components your host supports.

There have been many, many posts made throughout the world...
This was one of them.
Back to Top
Charmaine View Drop Down
Newbie
Newbie


Joined: 25 June 2003
Status: Offline
Points: 3
Post Options Post Options   Thanks (0) Thanks(0)   Quote Charmaine Quote  Post ReplyReply Direct Link To This Post Posted: 29 July 2003 at 4:48am

hi again ..

thank you all for your help .. apparently it was a host problem as it only supports SSO component 

The problem now is whether i could actually set the format of the email's body to html  using SSO .. i ve been trying to look up examples but havent really been succesful except for sending the mail and receiving it

Would anyone know of some site which indicates how and if SSO supports body formatting pls?

thanks in advance

Charmaine

Back to Top
the boss View Drop Down
Senior Member
Senior Member
Avatar

Joined: 19 January 2003
Location: Saudi Arabia
Status: Offline
Points: 1727
Post Options Post Options   Thanks (0) Thanks(0)   Quote the boss Quote  Post ReplyReply Direct Link To This Post Posted: 30 July 2003 at 2:39pm
and whats is SSO

Back to Top
Greaser View Drop Down
Newbie
Newbie


Joined: 30 October 2002
Location: United States
Status: Offline
Points: 26
Post Options Post Options   Thanks (0) Thanks(0)   Quote Greaser Quote  Post ReplyReply Direct Link To This Post Posted: 31 July 2003 at 10:56am

You can also use CDOSYS.  I now use it on any site that sends mail.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wss/wss/_clb_sending_smtp_mail_by_port_25_using_cdosys_vb.asp

'Sending SMTP mail via port 25 using CDOSYS
'This VB sample uses CDOSYS to send SMTP mail using the cdoSendUsingPort option and specifying a SMTP host.

Private Sub SendMessage(strTo As String, strFrom As String)

'Send using the Port on a SMTP server
Dim iMsg As New CDO.Message
Dim iConf As New CDO.Configuration
Dim Flds As ADODB.Fields
Dim strHTML

Set Flds = iConf.Fields

With Flds
    .Item(cdoSendUsingMethod) = cdoSendUsingPort
    .Item(cdoSMTPServer) = "smarthost"
    'Use SSL to connect to the SMTP server:
    '.Item(cdoSMTPUseSSL) = True
    .Item(cdoSMTPConnectionTimeout) = 10
    .Update
End With

' Build HTML for message body
strHTML = "<HTML>"
strHTML = strHTML & "<HEAD>"
strHTML = strHTML & "<BODY>"
strHTML = strHTML & "<b> This is the test HTML message body</b></br>"
strHTML = strHTML & "</BODY>"
strHTML = strHTML & "</HTML>"

With iMsg
    Set .Configuration = iConf
    .To = strTo
    .From = strFrom
    .Subject = "This is a test CDOSYS message (Sent by Port)"
    .HTMLBody = strHTML
    '.TextBody = "This is the text body of the message..."

    .Send
End With

' cleanup of variables
Set iMsg = Nothing
Set iConf = Nothing
Set Flds = Nothing

End Sub

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.