Solved

Send a mail in asp through third party server

Posted on 2004-09-13
3
314 Views
Last Modified: 2010-04-17
Hi,
    How to send a mail through third party mail server.Pls suggest me to solve this problem or give some sample code that would solve this problem. I'm using asp but the third party server is on linux platform.pls help out its very urgent.

Thanx
0
Comment
Question by:mohan21_kumar
3 Comments
 
LVL 3

Accepted Solution

by:
onemorecoke earned 50 total points
ID: 12084881
Here is what I use.  Good luck.

'
' send out the email
'
Set Mail=CreateObject("CDO.Message")
Mail.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/smtpserver") = "smtp.yourdomainorip.net"
Mail.Configuration.Fields("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
Mail.To="someone@somedomain.com"
Mail.From="you@somedomain.com"
Mail.Subject="Subject line"
Mail.TextBody="Plain text body message"
Mail.HTMLBody="HTML body message"
Mail.Configuration.Fields.Update
Mail.Send
Set Mail=nothing

0

Featured Post

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Tembedded WB animatid gifs not animated on some pcs 2 80
Base1 Encode/Decode 3 77
Math Equation 23 87
What does != "" mean in programming 8 32
This article will show, step by step, how to integrate R code into a R Sweave document
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question