?Send mail from remote server w/CDONTS-can it be d

Results 1 to 2 of 2

Thread: ?Send mail from remote server w/CDONTS-can it be d

  1. #1
    reverend27 Guest

    Default ?Send mail from remote server w/CDONTS-can it be d

    I have found no answer to this anywhere. What I would like to do is set up CDONTS to send mail using a server other than my web servers to send the mail. In the past I have re-dircted to a page w/<BR>&#060;%<BR> SET ObjNewMail = Server.CreateObject("CDONTS.NewMail")<BR> ObjNewMail.From = Request("from")<BR> ObjNewMail.To = Request("to")<BR> ObjNewMail.Subject = Request("subject")<BR> body = ...<BR> ObjNewMail.body = body<BR> ObjNewMail.Send<BR> ...<BR> Response.Redirect "somePage.html"<BR> ...<BR><BR>What I would rather do is something similar to retreiving email w/cdonts.Session object which I can&#039;t get to work. <BR>...<BR>SET mySession = Server.CreateObject("CDONTS.Session")<BR>mySession .LogonSMTP "Administrator", "administrator@myDomain.com"<BR>...<BR>etc. If anyone has any insight on how to send mail with asp from a remote mailserver-please let me know. Thanks in advance.<BR><BR>reverend27

  2. #2
    Join Date
    Dec 1969

    Default RE: ?Send mail from remote server w/CDONTS-can it

    you can set up a form on one site and set the action to a page on another server. then set that page (on the *other* srver) up to grab the data and create a new message from the form data mail the letter and redirect back to the other page with some status code in the querystring to let the original page know whether the mail succeeded or not.<BR>don&#039;t know if thats what you want or not. but it works.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts