Hi,
I am having trouble with the code below for sending an email. The user must select from a drop down menu the name to he will send the email, the dropdown is from a recorset, a table in the database contains the email address with the name.
I need to someone to check it to see if I am missing something, I already configure SMTP in my computer and try to test it on a readyhosting server but still not working. All the code is in the page that contains the form.
Do I need to declare variables for the test that is going to be send?
Thanks.
<% If Trim(Request.Form("submit")) <> "" Then %>
<%
Set Mail = Server.CreateObject("CDONTS.NewMail")
Mail.From = rsUserinfo.Fields.Item("Username").Value '(from users recordset, this is theyre email)
Mail.To = rsEmail.Fields.Item("emails").Value '(from emails recordset, in the page this is a drop down where the user selects to whom the request will be sent)
Mail.Subject = "SOME TEXT"