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!

Web based mail appilcation

Status
Not open for further replies.

javed007

Programmer
Mar 8, 2001
10
US
Hi,

I want to develop web based mail application using asp
Please tell me the way. I want to work against smtp

I want to keep all mail information into database instead of drop direcotry. How i will parse it and put into database like from,to,body

Please reply


Javed
 
Your question needs to be answered in several parts.
First what type of database do you want to use? I have code for SQL Server 7.
What type of E-mail does your WEB site/ISP have? CDonts??, ASPMail???? I use ASPMail
Here's a start:
------------------------
<%@ Language=VBScript %>
<%Fname=request.querystring(&quot;FirstName&quot;)%>
<%Lname=request.querystring(&quot;LastName&quot;)%>
<%
Set Conn = server.CreateObject(&quot;ADODB.Connection&quot;)
Conn.Open &quot;driver=SQL Server;server=clh.ij.net;uid=universal1;pwd=ULS1;database=Universal1;&quot;
Set RS1 = Conn.Execute(&quot;INSERT INTO dbo.BrochureRequests (FIRSTNAME, LASTNAME) VALUES ('&quot; & Fname & &quot;', '&quot; & Lname & &quot;')&quot;)
%>
<%
Set Mail = Server.CreateObject(&quot;Persits.MailSender&quot;)
Mail.Host = &quot;smtp.ij.net&quot; ' Specify a valid SMTP server
Mail.From = &quot;Webmaster@universal1.com&quot; ' Specify sender's address
Mail.FromName = &quot;WEB Site Auto Responder&quot; ' Specify sender's name

Mail.AddAddress &quot;dposton@universal1.com&quot;, &quot;Guru of The WEB&quot;
'Mail.AddReplyTo &quot;info@veryhotcakes.com&quot;
'Mail.AddAttachment &quot;c:\images\cakes.gif&quot;

Mail.Subject = &quot;WEB site Brochure Request&quot;
msg = &quot;FIRSTNAME&quot; & &quot; &quot; & Fname & Chr(13) & Chr(10)
msg = msg & &quot;LASTNAME&quot; & &quot; &quot; & Lname & Chr(13) & Chr(10)
Mail.Body = msg
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write &quot;Error encountered: &quot; & Err.Description
End If
%>
--------------------------------
DougP, MCP

Visit my WEB site to see how Bar-codes can help you be more productive
 
I know everyhtinh how to send email by cdon't or other component, but problem with retreival mail. i want to put mark mail is read or unread. I want to give more Outbox,Trash,Sent,draft because i configured smtp against IIS there is one drop where all the incomming message are store. How it possible ,please suggest me should i store mail into database to provide all faciltity or give me other solution
please reply.



Javed
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top