Sending Email with the WebTrend Email Component

Post new topic   Reply to topic

View previous topic View next topic Go down

Sending Email with the WebTrend Email Component

Post by sakthi on Wed Jan 09, 2008 6:13 pm

Here is a example of how to send email with the WebTrend's email component.


<%
response.write "Processing mail..."
Set Mail = CreateObject("WT_Sendmail.Send")
Mail.Server = "mail.domain.com"
Mail.SendFrom = "WebServer"
Mail.ReplyTo = "server@domain.com"
Mail.Subject = "Email Sent from IIS Server"
Mail.Body = "This email was sent from IIS using WebTrend's email component." & vbcr & _
"If you would like any additional information please visit Http://www.Webtrends.com ."

Mail.AddSendTo "user@domain.com"
Mail.AddSendTo "user2@domain.com"
Mail.AddBCC "blinduser@domain.com"
Mail.AddAttachment "c:\test.gif", "Base64"
Mail.SendMail

response.write "Done processing mail."

response.write Mail.Status
%>



Regards
Sakthi

sakthi
Leader

Posts: 187
Join date: 2007-12-02
Age: 25
Location: Coimbatore

View user profile

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum