Im using this bit of code below to use as a mailing list but whenever I have a space in the from part the mail will not be sent. ie: "Joe Bloggs". If i change this to "Joe_Bloggs" it works fine. Is it possible to have a space in this part of the code.
Also I wanted to get the From part from the form aswell using the request.form("txtFrom".
Can anyone help?
<%
While Not rsMAil.EOF
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"
objCDOMail.From = "Joe Bloggs"
objCDOMail.To = rsMAil("E_Mail"
objCDOMail.Subject = request.form("txtSubject"
objCDOMail.Body = request.form("txtMessage"
objCDOMail.Send
Set objCDOMail = Nothing
rsMAil.MoveNext
WEND
%>
Also I wanted to get the From part from the form aswell using the request.form("txtFrom".
Can anyone help?
<%
While Not rsMAil.EOF
Set objCDOMail = Server.CreateObject("CDONTS.NewMail"
objCDOMail.From = "Joe Bloggs"
objCDOMail.To = rsMAil("E_Mail"
objCDOMail.Subject = request.form("txtSubject"
objCDOMail.Body = request.form("txtMessage"
objCDOMail.Send
Set objCDOMail = Nothing
rsMAil.MoveNext
WEND
%>