webeasymail如何做在线发送?
<%
sub sendmail( strTo,strFrom,username,strSubject,strBody )
dim mymail
Set objNewMail = Server.CreateObject("EasyMail.EMMail")
objNewMail.Receiver = strTo
objNewMail.FromMail = strFrom
objNewMail.FromName = username
objNewMail.Subject = strSubject
objNewMail.Text = strBody
on error resume next '## Ignore Errors
objNewMail.Send
set objNewMail = Nothing
end sub
strTo = Request.Form("toWho")
strFrom = Request.Form("fromWho")
username = Request.Form("username")
strSubject = Request.Form("subject")
strBody = Request.Form("body")
if strTo <> "" then
sendMail strTo,strFrom,username,strSubject,strBody
end if
%>
服务器上装了webeasymail,用上面的程序发不出mail去啊?
问题不知出在哪里?