Solved

Send a mail in asp through third party server

Posted on 2004-09-13
3
318 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
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.
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…

734 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