| View previous topic :: View next topic |
| Author |
Message |
burnside Kattare Admin

Joined: 11 Nov 2002 Posts: 101 Location: Corvallis, OR
|
Posted: Sun Nov 17, 2002 7:07 am Post subject: Sending Email From Your ASP Scripts |
|
|
We've had a couple of folks run into this in the past because we have the default microsoft SMTP services disabled, so I thought I'd post this example code snippit here:
<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = "smtpauth.kattare.com" ' Specify a valid SMTP server
Mail.From = "sales@veryhotcakes.com" ' Specify sender's address
Mail.FromName = "VeryHotCakes Sales" ' Specify sender's name
Mail.AddAddress "andy@andrewscompany.net", "Andrew Johnson, Jr."
Mail.AddAddress "paul@paulscompany.com" ' Name is optional
Mail.AddReplyTo "info@veryhotcakes.com"
Mail.AddAttachment "c:\images\cakes.gif"
Mail.Subject = "Thanks for ordering our hot cakes!"
Mail.Body = "Dear Sir:" & Chr(13) & Chr(10) & _
"Thank you for your business."
On Error Resume Next
Mail.Send
If Err <> 0 Then
Response.Write "Error encountered: " & Err.Description
End If
%> _________________ Ethan Burnside
Kattare Internet Services
Email: burnside@kattare.com
Web: http://www.kattare.com |
|
| Back to top |
|
 |
ksnow7 Guest
|
Posted: Sat Feb 08, 2003 5:52 pm Post subject: ASPmail or CDONTS |
|
|
Hi there,
I downloaded an asp form mail script and need to modify 4 values to make it work. So far I've got it wrong!
Should the mailComp be aspmail or cdonts and what should i designate as the smtp server?
referers = Array("www.threesquaremedia.com")
mailComp = "ASPmail"
smtpServer = "smtpauth.kattare.com"
fromAddr = "fubar@threesquaremedia.com" |
|
| Back to top |
|
 |
burnside Kattare Admin

Joined: 11 Nov 2002 Posts: 101 Location: Corvallis, OR
|
Posted: Sun Feb 09, 2003 10:54 am Post subject: Re: ASPmail or CDONTS |
|
|
Howdy,
It should be "aspemail" I believe.
You have the right mail server. smtpauth.kattare.com allows sending internally without authentication.
Cheers,
~Ethan B.
| ksnow7 wrote: |
Hi there,
I downloaded an asp form mail script and need to modify 4 values to make it work. So far I've got it wrong!
Should the mailComp be aspmail or cdonts and what should i designate as the smtp server?
referers = Array("www.threesquaremedia.com")
mailComp = "ASPmail"
smtpServer = "smtpauth.kattare.com"
fromAddr = "fubar@threesquaremedia.com" |
_________________ Ethan Burnside
Kattare Internet Services
Email: burnside@kattare.com
Web: http://www.kattare.com |
|
| Back to top |
|
 |
|