Solved

Send a mail in asp through third party server

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

A short article about problems I had with the new location API and permissions in Marshmallow
Whether you’re a college noob or a soon-to-be pro, these tips are sure to help you in your journey to becoming a programming ninja and stand out from the crowd.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

713 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