imchaz
02-09-2009, 10:11 AM
I have this code working in a previous provider but when I migrated it here I get an error. I coded this in Javascript.
So in the line where it states: objCDOMail.Send();
I get an error that appears on that asp page:
CDO.Message.1 error '80040220'
The 'SendUsing' configuration value is invalid.
test.asp, line ###
[quote]
varobjCDOMail=Server.CreateObject('CDO.Message');
varstrTo;
varstrFrom;
varstrCc;
varstrSubject;
varstrBody;
varLineBreak='\r\n';
//Firstwe'llreadinthevaluesenteredfromtheformintothe Localvariables
strFrom=Request.Form('hiddenFrom');//'MakesuretheFromfieldhasnospaces.
strTo=Request.Form('hiddenTo');
//GethiddenCCvaluesfromfunctionConverHideValues
strCc=Request.Form('hiddenCC');
strSubject='ThisIsaTestSubjectLine';
strBody='BodyTest';
strBody=strBody+LineBreak;
//'Setthepropertiesoftheobject
objCDOMail.From=strFrom;//'or'webperson@whatever.com'Youcanhardcodesomething too!
objCDOMail.To=strTo;
objCDOMail.Cc=strCc;
objCDOMail.Subject=strSubject;
objCDOMail.TextBody=strBody;
//'Sendthemessage!
objCDOMail.Send();
//'Settheobjecttonothingbecauseitimmediatelybecomes
//'invalidaftercallingtheSendmethod+itclearsitoutoft heServer'sMemory.
objCDOMail=null;
</CODE>
What do I have to change to make it work here on DiscountASP?
Thanks.
So in the line where it states: objCDOMail.Send();
I get an error that appears on that asp page:
CDO.Message.1 error '80040220'
The 'SendUsing' configuration value is invalid.
test.asp, line ###
[quote]
varobjCDOMail=Server.CreateObject('CDO.Message');
varstrTo;
varstrFrom;
varstrCc;
varstrSubject;
varstrBody;
varLineBreak='\r\n';
//Firstwe'llreadinthevaluesenteredfromtheformintothe Localvariables
strFrom=Request.Form('hiddenFrom');//'MakesuretheFromfieldhasnospaces.
strTo=Request.Form('hiddenTo');
//GethiddenCCvaluesfromfunctionConverHideValues
strCc=Request.Form('hiddenCC');
strSubject='ThisIsaTestSubjectLine';
strBody='BodyTest';
strBody=strBody+LineBreak;
//'Setthepropertiesoftheobject
objCDOMail.From=strFrom;//'or'webperson@whatever.com'Youcanhardcodesomething too!
objCDOMail.To=strTo;
objCDOMail.Cc=strCc;
objCDOMail.Subject=strSubject;
objCDOMail.TextBody=strBody;
//'Sendthemessage!
objCDOMail.Send();
//'Settheobjecttonothingbecauseitimmediatelybecomes
//'invalidaftercallingtheSendmethod+itclearsitoutoft heServer'sMemory.
objCDOMail=null;
</CODE>
What do I have to change to make it work here on DiscountASP?
Thanks.