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!

ASPEmail Assistance

Status
Not open for further replies.

Dostani

MIS
Jul 26, 2002
60
US
How do you reference the user name and password and port for the mail server using ASPEmail and where do I need to put it? Code Example:

<%
Dim QuoteMail, QuoteBody

Set QuoteMail = Server.CreateObject("Persits.MailSender")

QuoteBody="The purposed project category is... " & vbcrlf
'yada yada yada
'yada yada yada
'yada yada yada
'yada yada yada

QuoteMail.Host = "smtp.mailserver.com" ' Specify a valid SMTP server
QuoteMail.From = "Quotes@mailserver.com" ' Specify sender's address
QuoteMail.FromName = "Illusional web" ' Specify sender's name
QuoteMail.AddAddress "clients@email.com", "Quote a client on Illusional web"
QuoteMail.AddAddress "myemail@bohica-designs.com", "Webmaster"
QuoteMail.AddReplyTo request.form("TheEmail")

QuoteMail.Subject = "A quote for Illusional web"
QuoteMail.Body=QuoteBody

On Error Resume Next
QuoteMail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
set custMail=nothing
%>

Thanks in advance!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top