Asp mail problem

  • Sqnik
  • Beginner
  • Beginner
  • User avatar
  • Joined: May 05, 2004
  • Posts: 64
  • Loc: Poland Warsaw
  • Status: Offline

Post April 8th, 2005, 4:05 pm

hi,

I found this code on w3school but I don't know why it's not sending enything. do you have any ideas?


Code: [ Download ] [ Select ]
<%
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="aaaaa@iiiiii"
myMail.To="llll@kkk"
myMail.TextBody="This is a message."

myMail.Send
%>
  1. <%
  2. Set myMail=CreateObject("CDO.Message")
  3. myMail.Subject="Sending email with CDO"
  4. myMail.From="aaaaa@iiiiii"
  5. myMail.To="llll@kkk"
  6. myMail.TextBody="This is a message."
  7. myMail.Send
  8. %>




thanks
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 8th, 2005, 4:05 pm

  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 8th, 2005, 4:27 pm

What does your host support? Do they have JMail, and / or CDONTS support?
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • Sqnik
  • Beginner
  • Beginner
  • User avatar
  • Joined: May 05, 2004
  • Posts: 64
  • Loc: Poland Warsaw
  • Status: Offline

Post April 13th, 2005, 1:29 pm

hi,

first i want to apologize for not replying for so long but I wasn't home.

i know that it could sound strange but i don't know the answers for your questions. how can i check it?

thanks
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 13th, 2005, 1:32 pm

I would like to hope that they would have it somewhere in their FAQ's, or info in their hosting plans or tech support areas. If not you might need to check with their tech support.

You need to know what is supported so you can make the correct connection and write the script accordingly.
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 13th, 2005, 1:35 pm

Here is a sample Jmail script:
http://www.exahost.co.uk/sample_asp.htm

And here is a cdonts example:
http://www.programmershelp.co.uk/showarticles1.php?e=21
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • Sqnik
  • Beginner
  • Beginner
  • User avatar
  • Joined: May 05, 2004
  • Posts: 64
  • Loc: Poland Warsaw
  • Status: Offline

Post April 13th, 2005, 1:46 pm

i don't know if it's important but about an hour after I compile this code i recieved an e-mail
subject: Delivery Status Notification (Failure)

and in attachment there was a txt file named details saying

Reporting-MTA: dns;inia
Received-From-MTA: dns;inia
Arrival-Date: Sat, 9 Apr 2005 00:59:35 +0200

Final-Recipient: rfc822;bullet5@wp.pl
Action: failed
Status: 5.5.0
Diagnostic-Code: smtp;550 SPF Error: Please see http://spf.pobox.com/why.html?sender=ju ... smtp.wp.pl If you are a poczta.wp.pl user check SMTP configuration: http://poczta.wp.pl/autoryzacja/


thanks
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 13th, 2005, 1:54 pm

Yeah, that's an email failure notification. Unfortunately I can't read the language. Are you trying to run this script from your home computer? Or are you trying to run this from a hosted website?
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • Sqnik
  • Beginner
  • Beginner
  • User avatar
  • Joined: May 05, 2004
  • Posts: 64
  • Loc: Poland Warsaw
  • Status: Offline

Post April 13th, 2005, 2:08 pm

yes i'm trying to run this script from home computer
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 13th, 2005, 4:29 pm

I'm assuming you have IIS installed. What operating system? I know NT/Win2K/Win2k3 servers natively support CDONTS, but I'm not sure about the home operating systems. I'll have to check.
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • Sqnik
  • Beginner
  • Beginner
  • User avatar
  • Joined: May 05, 2004
  • Posts: 64
  • Loc: Poland Warsaw
  • Status: Offline

Post April 13th, 2005, 4:43 pm

that's right I have iis and win 2003. from what you've written I should use cdonts but


Quote:
How about CDONTs?

Microsoft has discontinued the use of CDONTs on Windows 2000, Windows XP and Windows 2003. If you have used CDONTs in your ASP applications, you should update the code and use the new CDO technology.


this is from w3schools.
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 13th, 2005, 4:43 pm

I did a real quick check of IIS and there is a virtual SMTP server built in. Problem I have is that I've never needed to use it and would have to start from square one and read the help files and search for tutorials on the internet. You need an SMTP server to send mail and it looks like that's the ticket. You probably will have to use CDO like your initial script is set up, but I'm not sure how it works with the virtual SMTP server.

Hopefully someone else has done this and will be able to offer additional advice. At this point I'm as clueless as you are. I've only ever worked from servers that had mail SMTP programs like Exchange already built in..
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 13th, 2005, 4:44 pm

Just saw your post. OK -- guess we just need to figure out how to get your CDO script to work with your server. It still probably has something to do with the virtual SMTP server I refered to.
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 13th, 2005, 4:49 pm

Here's the first thing I found to get you started:
http://www.asp101.com/articles/john/cdo ... efault.asp
I'll look for more

//other detailed examples to study
http://www.paulsadowski.com/WSH/cdo.htm
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • ATNO/TW
  • Super Moderator
  • Super Moderator
  • User avatar
  • Joined: May 28, 2003
  • Posts: 22498
  • Loc: Pittsburgh PA
  • Status: Online

Post April 13th, 2005, 4:55 pm

Check this question (similar to yours) and scroll down to read the replies, in particular the one noted as the Accepted Answer.
http://www.experts-exchange.com/Web/Web ... 78458.html
"The web is a dominatrix. Every where I turn, I see little buttons ordering me to Submit."
Play sports pools and discuss sports topics at Boasting Rights Sports Forum
Get paid to write articles - www.associatedcontent.com
  • Sqnik
  • Beginner
  • Beginner
  • User avatar
  • Joined: May 05, 2004
  • Posts: 64
  • Loc: Poland Warsaw
  • Status: Offline

Post April 13th, 2005, 5:32 pm

thanks <lol>

but after running code

Code: [ Download ] [ Select ]

Set objMail=CreateObject("CDO.Message")

Set objConfig = createobject("cdo.configuration")
Set Flds = objConfig.Fields
With Flds
.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
.Update
End With
Set objMail.Configuration = objConfig
objMail.Subject="Sending email with CDO"
objMail.From="bullet5@wp.pl"
objMail.To="bullet5@wp.pl"
objMail.TextBody="This is a message."

objMail.Send
  1. Set objMail=CreateObject("CDO.Message")
  2. Set objConfig = createobject("cdo.configuration")
  3. Set Flds = objConfig.Fields
  4. With Flds
  5. .Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
  6. .Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "localhost"
  7. .Update
  8. End With
  9. Set objMail.Configuration = objConfig
  10. objMail.Subject="Sending email with CDO"
  11. objMail.From="bullet5@wp.pl"
  12. objMail.To="bullet5@wp.pl"
  13. objMail.TextBody="This is a message."
  14. objMail.Send



I'm receiving the same email as before. Delivery Status Notification (Failure). in this mail I'm also receiving my message but as an attachment.
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 13th, 2005, 5:32 pm

Post Information

  • Total Posts in this topic: 18 posts
  • Users browsing this forum: No registered users and 137 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© Unmelted Enterprises 1998-2009. Driven by phpBB © 2001-2009 phpBB Group.