frezi
01-03-2005, 09:56 PM
Hey fellows, I'm an ASP newbie,
The following code WORKS GREAT on my computer, localhost-wize. When I upload it to my internet-host area (a domain.co.il perchuse) there's some error:
CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
/sendMail.asp, line 19
The code:
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<title>contact</title>
<%
sub sendMail()
subject=Request.Form("messageTitle")
from=Request.Form("replyMail")
message=Request.Form("theMessage")
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Message from my website: " & subject
myMail.From=from
myMail.To="freziy@zahav.net.il"
myMail.TextBody=message
myMail.Send
end sub
%>
</head>
<body bgcolor="#2E2E2E" topmargin="12" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<% call sendMail() %>
<table border="0" width="600" cellspacing="0" cellpadding="0" height="400" id="table1">
<tr height="30">
<td background="signupperbg.JPG"><span lang="he"><u>
<font size="5" color="#FBC81F"><b>צור קשר</b></font></u></span></td>
</tr>
<tr>
<td valign="center" background="signupbg.JPG" align="center">
<font face="Verdana" color="white"><span lang="he">
<b>
Message sent. Thanks.
</b>
</td>
</tr>
</table>
</body>
</html>
I'de appriciate any help, thanks :)
The following code WORKS GREAT on my computer, localhost-wize. When I upload it to my internet-host area (a domain.co.il perchuse) there's some error:
CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
/sendMail.asp, line 19
The code:
<html dir="rtl">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1255">
<title>contact</title>
<%
sub sendMail()
subject=Request.Form("messageTitle")
from=Request.Form("replyMail")
message=Request.Form("theMessage")
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Message from my website: " & subject
myMail.From=from
myMail.To="freziy@zahav.net.il"
myMail.TextBody=message
myMail.Send
end sub
%>
</head>
<body bgcolor="#2E2E2E" topmargin="12" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<% call sendMail() %>
<table border="0" width="600" cellspacing="0" cellpadding="0" height="400" id="table1">
<tr height="30">
<td background="signupperbg.JPG"><span lang="he"><u>
<font size="5" color="#FBC81F"><b>צור קשר</b></font></u></span></td>
</tr>
<tr>
<td valign="center" background="signupbg.JPG" align="center">
<font face="Verdana" color="white"><span lang="he">
<b>
Message sent. Thanks.
</b>
</td>
</tr>
</table>
</body>
</html>
I'de appriciate any help, thanks :)