Problem with CDOSYS (email)

Thread Solved

Join Date: Apr 2005
Posts: 75
Reputation: purplegerbil is an unknown quantity at this point 
Solved Threads: 6
purplegerbil's Avatar
purplegerbil purplegerbil is offline Offline
Junior Poster in Training

Problem with CDOSYS (email)

 
0
  #1
Dec 14th, 2007
Hi,

I have the following code:

  1. <%
  2. Dim myMail
  3. Set myMail=CreateObject("CDO.Message")
  4. myMail.Subject="Information from website"
  5. myMail.From="mymail@hotmail.com"
  6. myMail.To="someone@hotmail.com"
  7. myMail.TextBody="This is the information I want to email"
  8. myMail.Send
  9. set myMail=nothing
  10. %>


When I use the above code I do not get an email sent to me.

Any ideas?

pG
purpleGERBIL
Reply With Quote Quick reply to this message  
Join Date: Dec 2005
Posts: 2
Reputation: Nicodemas is an unknown quantity at this point 
Solved Threads: 1
Nicodemas Nicodemas is offline Offline
Newbie Poster

Re: Problem with CDOSYS (email)

 
0
  #2
Dec 18th, 2007
Do you get a particular error message? Please post your error message.
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 75
Reputation: purplegerbil is an unknown quantity at this point 
Solved Threads: 6
purplegerbil's Avatar
purplegerbil purplegerbil is offline Offline
Junior Poster in Training

Re: Problem with CDOSYS (email)

 
0
  #3
Dec 18th, 2007
Hi,
I don't get an error but found out what the problem is.

It is the hosting company. I had to use an email address for the 'From' that included my domain.
i.e domain: www.purplegerbil.co.uk email: noreply@purplegerbil.co.uk.
purpleGERBIL
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the ASP Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC