Solved

Send a mail in asp through third party server

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
find a node in VST 2 64
changePi Challenge 15 106
array220 challenge 8 56
Looking for a network enabled locker remotely controlled like Amazon locker 2 35
RIA (Rich Internet Application) tools are interactive internet applications which have many of the characteristics of desktop applications. The RIA tools typically deliver output either by the way of a site-specific browser or via browser plug-in. T…
If you’re thinking to yourself “That description sounds a lot like two people doing the work that one could accomplish,” you’re not alone.
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 …
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…

895 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

13 Experts available now in Live!

Get 1:1 Help Now