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
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