Solved

c# - Relay email directly to smtp server

Posted on 2014-02-19
5
596 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 12

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 12

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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Performance in games development is paramount: every microsecond counts to be able to do everything in less than 33ms (aiming at 16ms). C# foreach statement is one of the worst performance killers, and here I explain why.
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

706 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

20 Experts available now in Live!

Get 1:1 Help Now