Wrox Programmer Forums
|
ASP CDO As of Oct 5, 2005, this forum is now locked. No posts have been deleted. Please use "Classic ASP Professional" at: http://p2p.wrox.com/forum.asp?FORUM_ID=56 for discussions similar to the old ASP Pro Code Clinic or one of the other many remaining ASP and ASP.NET forums here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP CDO section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 27th, 2004, 01:40 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default Mail Bounce Back

Hello Everybody,

I m using CDONTS Sendmail for massmailing purpose..
My Mails gets delivered some clients but most of them gets bounce back.. I have check on the mail addresses for which my mail gets bounce...

My observation tells me that most of the Hotmail/AOL users doesnot get my mail..

I have checked the .BAD file and noticed that i m getting
500 Syntax error, command unrecognized (This may include errors such as command line too long)

Pl. help me out to solve this problem,

Thanks in Adv.

Cheers,
Chaitanya


Chaitanya S Tembe
Cell No.:
+91 98 208 31 42 1
 
Old July 27th, 2004, 02:52 AM
Friend of Wrox
 
Join Date: Oct 2003
Posts: 479
Thanks: 0
Thanked 3 Times in 3 Posts
Send a message via MSN to surendran Send a message via Yahoo to surendran
Default

hi
try this
 <%
    Set objCDOMail=Server.CreateObject("CDONTS.NewMail")
    objCDOMail.From="[email protected]"
    objCDOMail.To=email
    objCDOMail.Subject="Contact Details"
    'objCDOMail.Bcc="[email protected]"
    objCDOMail.BodyFormat=0
    objCDOMail.MailFormat=0
    objCDOMail.Body=str
    objCDOMail.Importance=2
    objCDOMail.Send
    Set objCDOMail=Nothing%>

surendran
(Anything is Possible)
 
Old July 28th, 2004, 12:39 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hey Surendran,

I appreciate ur reply, but the thing is that i m doing the same thing as u have posted..

I noticed only one difference between the 2 codes, which was, i was not assigning the Importance parameter..so i tried that also..but no luck..

Can there be any other solution..

Thanks in Adv.

Cheers



Chaitanya S Tembe
Cell No.:
+91 98 208 31 42 1
 
Old July 28th, 2004, 07:20 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,110
Thanks: 0
Thanked 3 Times in 3 Posts
Default

What Operating System are you using. I recommend using CDOSYS instead of CDONTS if you are using Win XP Pro.

 
Old July 29th, 2004, 12:55 AM
Registered User
 
Join Date: May 2004
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi stu9820/Everybody,
I m using Win2000 O.S

Also one more thing to ask
I want some info @ using .AttachURL method as i tried to use the same but then my mail definately bounces to any email address...

This is my code snap
Version of CDONTS is 1.2

<%
Dim myMail
Set myMail = CreateObject("CDONTS.NewMail")

HTML = "<!DOCTYPE HTML PUBLIC ""-//IETF//DTD HTML//EN"">" & NL
HTML = HTML & "<html>"
HTML = HTML & "<head>"
HTML = HTML & "<meta http-equiv=""Content-Type"""
HTML = HTML & "content=""text/html; charset=iso-8859-1"">"
HTML = HTML & "<meta name=""GENERATOR"" content=""Microsoft FrontPage 2.0"">"
HTML = HTML & "<title>Exchange CDO Example</title>"
HTML = HTML & "</head>"
HTML = HTML & "<body bgcolor=""#FFFFFF"">"
HTML = HTML & "<p><strong>Exchange CDO "
HTML = HTML & "Sample<img src=Win2000.gif>"
HTML = HTML & "</strong></p>"
HTML = HTML & "<p>CDO for NTS allows an easy way to send mail."
HTML = HTML & "This example shows how the content can be an HTML page"
HTML = HTML & "which allows you to send rich text and inline graphics.</p>"
HTML = HTML & "</body>"
HTML = HTML & "</html>"

myMail.AttachURL "E:\Win2000.gif", "Win2000.gif"
myMail.From = "[email protected]"
myMail.To = "[email protected]"
myMail.Subject = "Sample Message"
myMail.BodyFormat = 0
myMail.MailFormat = 0
myMail.Body = HTML
myMail.Send

Response.Write "<b>CDONTS.version :</b>" & myMail.version & "<br>[email protected]<br>"
Set myMail = nothing

Response.Write HTML
%>


Kindly help me out...

Cheers

Chaitanya S Tembe
Cell No.:
+91 98 208 31 42 1
 
Old July 31st, 2004, 06:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,480
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi there,

I assume this code was taken from AttachURL Method (CDONTS NewMail Object)

The same works perfectly in my PC. The following are the changes I made in that code.

HTML = HTML & "Sample<img src=Lg.jpg>"
...
...

myMail.AttachURL "c:\Inetpub\wwwroot\Lg.jpg", "Lg.jpg"
myMail.From = "[email protected]"
myMail.To = "[email protected]"
...

This works perfect, with the Image coming in its place where IMG tage is used. Not sure what you mean by
Quote:
quote:I want some info @ using .AttachURL method as i tried to use the same but then my mail definately bounces to any email address...
Check if you have SMTP service installed and started on the system that runs IIS.

Cheers!
_________________________
- Vijay G
Strive for Perfection





Similar Threads
Thread Thread Starter Forum Replies Last Post
Send mail and attachments with PHP mail function Lofa Beginning PHP 1 June 2nd, 2008 03:24 PM
problems sending mail with java mail gandacuboy J2EE 2 December 20th, 2006 03:05 PM
Bounce-path Specification pavanp .NET Web Services 0 February 1st, 2005 10:39 AM
history.back or hitting the back button won't work lian_a Classic ASP Basics 4 July 29th, 2004 12:14 AM
Sending both text mail and HTML mail - CDONTS madhukp Classic ASP Basics 1 October 8th, 2003 01:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.