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!

Email autoreply in VBscript 1

Status
Not open for further replies.

fergman

Technical User
Oct 19, 2000
91
US
I am trying to pull data from a variable, that contains an email address and have it send an automated response, what do I need to do?
[sig][/sig]
 
Not sure if this is what you want to do.
Also this is if your WEB site has Persists E-mail

<% ' Email results to poster
Set Mail2 = Server.CreateObject(&quot;Persits.MailSender&quot;)
Mail2.Host = &quot;smtp.yoursite.com&quot; ' Specify a valid SMTP server
Mail2.From = Email_of_Poster ' Specify sender's address
Mail2.FromName = Name_of_Poster ' Specify sender's name

Mail2.AddAddress &quot;youremail@yourplace.com&quot;

Mail2.Subject = &quot;Reply form your Site&quot;
msg = Name_of_submitter & &quot; has posted a response to your &quot; & Subject_of_Current_Post
Mail2.Body = msg
On Error Resume Next
Mail2.Send
If Err <> 0 Then
Response.Write &quot;Error encountered: &quot; & Err.Description
End If
%>

You can switch the Mail2.From and Mail2.AddAddress around to suit your needs.
The .From is who its from and the .AddAddress is who its going to..
:)
[sig]<p>DougP, MCP<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.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top