Kattare Internet Services Homepage Kattare Internet Services
Members & Developers Forums
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Sending Email From Your ASP Scripts

 
Post new topic   Reply to topic    Kattare Internet Services Forum Index -> ASP
View previous topic :: View next topic  
Author Message
burnside
Kattare Admin


Joined: 11 Nov 2002
Posts: 101
Location: Corvallis, OR

PostPosted: Sun Nov 17, 2002 7:07 am    Post subject: Sending Email From Your ASP Scripts Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
ksnow7
Guest





PostPosted: Sat Feb 08, 2003 5:52 pm    Post subject: ASPmail or CDONTS Reply with quote

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

PostPosted: Sun Feb 09, 2003 10:54 am    Post subject: Re: ASPmail or CDONTS Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Kattare Internet Services Forum Index -> ASP All times are GMT - 8 Hours

Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group