954,585 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Problem with CDOSYS (email)

Hi,

I have the following code:

<%
Dim myMail
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Information from website"
myMail.From="mymail@hotmail.com"
myMail.To="someone@hotmail.com"
myMail.TextBody="This is the information I want to email"
myMail.Send
set myMail=nothing
%>

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

Any ideas?

pG

purplegerbil
Junior Poster in Training
78 posts since Apr 2005
Reputation Points: 24
Solved Threads: 6
 

Do you get a particular error message? Please post your error message.

Nicodemas
Newbie Poster
2 posts since Dec 2005
Reputation Points: 10
Solved Threads: 1
 

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: [email]noreply@purplegerbil.co.uk[/email].

purplegerbil
Junior Poster in Training
78 posts since Apr 2005
Reputation Points: 24
Solved Threads: 6
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You