473,320 Members | 1,914 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Mail Form Problem

I am having a problem with this code here. It is giving me the following error:

error '8004020f'
/atlanticatch.ca/send_form.asp, line 78

Line 78 is the "MyMail.Send" one.

Can anyone help?


dim myMail, objConfig
Set myMail=CreateObject("CDO.Message")
Set objConfig = Server.CreateObject("CDO.Configuration")

myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
'Name or IP of remote SMTP server
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserver") _
="mail.atlanticatch.ca"
'Server port
myMail.Configuration.Fields.Item _
("http://schemas.microsoft.com/cdo/configuration/smtpserverport") _
=25
myMail.Configuration.Fields.Update

myMail.Subject="Order Request From Your Website"
myMail.From= "From your Website <noreply@atlanticatch.ca>"
myMail.To= "remi@dicstudios.ca"
myMail.Bcc="soccerfan_333@hotmail.com"
MyMail.HTMLBody = strBody
myMail.Send
Jul 3 '06 #1
1 2147
sashi
1,754 Expert 1GB
Hi there,

nice try buddy.. pls do not attempt "CnP" cut n paste technology here.. as i have mentioned in few of my replies.. we do not help anyone to write code, instead we help ppl to debug their code..

http://www.paulsadowski.com/WSH/cdo.htm

Expand|Select|Wrap|Line Numbers
  1. <%
  2. dim myMail, objConfig
  3. Set myMail=CreateObject("CDO.Message")
  4. Set objConfig = Server.CreateObject("CDO.Configuration") 
  5.  
  6. myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
  7. 'Name or IP of remote SMTP server
  8. myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "mail.atlanticatch.ca"
  9. 'Server port
  10. myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 
  11. myMail.Configuration.Fields.Update
  12.  
  13. myMail.Subject="Order Request From Your Website"
  14. myMail.From= "From your Website <noreply@atlanticatch.ca>"
  15. myMail.To= "remi@dicstudios.ca"
  16. myMail.Bcc="soccerfan_333@hotmail.com"
  17. MyMail.HTMLBody = "YOUR BODY MESSAGE"
  18. myMail.Send
  19. %>
  20.  
p/s pls show us what u have done and we will try to debug it for you.. good luck my fren.. :)
Jul 3 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

5
by: Bruce W...1 | last post by:
In my effort to learn PHP I'm playing with some simple email scripts. They worked a few days ago but they stopped working. The only thing I've done to this Windows 2000 PC in this time was a...
6
by: DigitalRick | last post by:
I have been running CDONTS in my ASPpages to send emails to me sent from my guestbook. It had been working fine untill I upgraded to Server 2003 (I am also running Exchange 2003) all locally. I...
7
by: GeorgeAtkins | last post by:
I want to create a web-based form or page that consists of a series of formatted questions and answers. The form will resemble an existing paper form. When the form is filled in, I want the user to...
6
by: chris | last post by:
My code <?php $name = "freddie"; $message.="Hi Joe,\n"; $message.="\t $name has Filled out the form on the Website,\n"; $message.="The information from the form is listed below:\n";...
9
by: shror | last post by:
hi every body, i have a problem which is when i was checking my mail() form it work fine but the problem is that the form configuration is not set correctly, in details: the from var is not...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.