[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

c# - Relay email directly to smtp server

Posted on 2014-02-19
5
Medium Priority
?
793 Views
Last Modified: 2014-02-27
Hi,

I'm trying to redirect emails into Google Mail without changing the domain names MX records.

In my C# application how do I deliver mail directly to "aspmx.l.google.com" without looking up the actual MX records of the recipient domain name.

Is this possible?
0
Comment
Question by:mhdi
  • 3
  • 2
5 Comments
 
LVL 13

Expert Comment

by:ktaczala
ID: 39872418
you need to be able to access a SMTP Server such as exchange or gmail,  then use the system.net.mail namespace
0
 

Author Comment

by:mhdi
ID: 39872424
How do I ask the SMTP server to deliver the emails directly to a server (without looking up the recipient domain MX records)?
0
 
LVL 13

Expert Comment

by:ktaczala
ID: 39872451
You have to setup the system.net.mail credentials

See here for a tutorial:
http://www.rebex.net/support/tutorial/mail-message/default.aspx
0
 

Accepted Solution

by:
mhdi earned 0 total points
ID: 39880197
0
 

Author Closing Comment

by:mhdi
ID: 39891399
This is the answer I was looking for.
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

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Integration Management Part 2
Screencast - Getting to Know the Pipeline
Suggested Courses

830 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