Attach Mail

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 2

<% IP=request.serverVariables("remote_host") attachdir = "c:\inetpub\webs\www.govindabar.com\text\" attachment= attachdir & IP & ".txt" ' attachment="http://www.govindabars.com/text/" & IP & ".txt" orderno=request.

querystring("orderno") %> <% Set mailer = Server.CreateObject("ASPMAIL.ASPMailCtrl.1") %> <% recipient = "sales@govindabars.com" sender = "webserver@govindabars.com" subject = " " & orderno message = "The attachment to this email contains the products ordered. Login to the shopping cart to retrieve customer details https://hwd.net/secure/c32web.exe Username=jowdy1, Password=govinda" ' insert your mail server here 'mailserver = "" mailserver = "mail.bizestore.com" 'result = Mailer.XHeader("Date", "Any Old Date") result = mailer.SendX(mailserver, _ sender, _ sender, _ "", _ "", _ recipient, _ "", _ "", _ attachment, _ subject, _ message) If result ="" Then Set filesys = Server.CreateObject("Scripting.FileSystemObject") filesys.DeleteFile(attachment) End If %> <HTML> <Head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title></title> <link rel="stylesheet" type="text/css" href="../stylz/main.css"> </head> <body bgcolor="#FFFFFF"> <p align="center">&nbsp;</p> <p align="center"><font face="Arial"><b>Thank you</b></font></p> <p align="center"><font face="Arial"><b>Your order number is&nbsp;<% response.wr ite(orderno)%></b></font></p> <p align="center"><font face="Arial"><b>click here to return to <a href="http:// www.govindabars.com">Govindabars.com</a></b></font></p>

</body> </html>

You might also like