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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

E-mail Server for response e-mail

Status
Not open for further replies.

DougP

MIS
Dec 13, 1999
5,985
US
Set Mail = Server.CreateObject(&quot;Persits.MailSender&quot;)<br>Mail.Host = &quot;smtp.someserver.com&quot; ' Specify a valid SMTP server<br><br>I am using the following code to send us a response after someone fills out a form.<br>I works great. we get a response cause smtp.someserver.com is our correct smtp server.<br>I thought, wouldn't it be nice if I could also send the person filling out a form a different reply too.<br>So I am using the same code for them.<br>But they are not getting the e-mail cause their smtp server is not the same as mine.<br><br>How can I send them an e-mail too?<br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
You are using a 3rd party component to send and receive mail so you could probably check their documentation.&nbsp;&nbsp;If however you were or could use CDO (Collaboration Data Objects) this is the code to do it:<br><br>&lt;%<br>Dim oMail<br>Set oMail = Server.CreateObject(&quot;CDONTS.NewMail&quot;) <br>oMail.Send(&quot;<A HREF="mailto:me@company.com">me@company.com</A>&quot;, &quot;<A HREF="mailto:you@company.com">you@company.com</A>&quot;, &quot;My Subject&quot;, &quot;Hello, this is my message body&quot;)<br>Set oMail = Nothing<br>%&gt;<br><br>So where do you get CDO?&nbsp;&nbsp;You already have it, its installed when you install IIS's SMTP service!<br><br>Check the IIS documentation for more information... you can do alot with it.&nbsp;&nbsp;The help file path is this:&nbsp;&nbsp;Contents tab -&gt; Microsoft Internet Information Server -&gt; Scripter's Reference -&gt; Installable Components for ASP -&gt; Collaboration Data Objects for NTS Component.<br><br>Have fun.<br><br> <p> <br><a href=mailto: > </a><br><a href= View my Brainbench transcript</a><br>Brainbench MVP
 
DougP,<br><br>&gt; I works great. we get a response cause smtp.someserver.com is our correct smtp server<br><br>&gt; But they are not getting the e-mail cause their smtp server is not the same as mine.<br><br>That is not correct. SMTP servers 'send mail', your smtp server can send mail to any domain assuming that it is configured correctly. There must be another reason that your attempt to send the email to the second person does not work.<br><br>Good luck<br>-pete
 
Well I contacted my ISP and they said becasue I was using <A HREF="mailto:webmaster@oursite.com">webmaster@oursite.com</A>. That there was no valid e-mail address called &quot;web master&quot;. So I changed it to <A HREF="mailto:sales@oursite.com">sales@oursite.com</A> which is a valid e-mail on our WEB site. It workes just fine now.<br> <p>DougP<br><a href=mailto: dposton@universal1.com> dposton@universal1.com</a><br><a href= > </a><br> Ask me how Bar-codes can help you be more productive.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top