Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am about to loose it here. The b

Status
Not open for further replies.

minoad

Programmer
Mar 28, 2001
138
US
I am about to loose it here. The below code should be a funtion that send mail using the CDO object. This function is erring out and i am pretty much at a loss. Any ideas?

Function ErrMailMsg(strSender,strFrom,strTo)
Dim objMail
Set objMail = Server.CreateObject("CDONTS.NewMail")

Let intStrSender = cstr(strSender)
Let intStrFrom = cstr(strFrom)
Let intStrTo = cstr(strTo)

objMail.From = intStrFrom
objMail.Subject = "Error with Site Setup"
objMail.To = intStrTo

Let aspMailBody = &quot;<table align = 'center'>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & intStrSender & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Cfname & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Clname & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Ccity & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Cstate & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Cphonea & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Cphoneb & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Cphonec & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Cphoneext & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Luname & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & txt_Lpassword & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & expMon & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;<tr><td>&quot; & expYear & &quot;</td></tr>&quot;
Let aspMailBody = aspMailBody & &quot;</table>&quot;



objMail.Body = aspMailBody
objMail.Send

set objMail = nothing

End Function
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top