Solved

Send a mail in asp through third party server

Posted on 2004-09-13
3
311 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

What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
VBA color chart bars 12 65
for loop with Set 4 45
nestparen challenge 4 56
C# DataGridView_RowsAdded event not firing 1 37
Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
This is an explanation of a simple data model to help parse a JSON feed
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 …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now