How to send Mail using PostMark SMTP server using Sytem.Net.Mail ?
I don't want to use there API I have up and running code which was earlier using Gmail SMTP to send out my mails .But due to mass mailing I needed PostMark.
Did you look into their documentation?
http://developer.postmarkapp.com/developer-smtp.html
-It's all there, I think...
Related
i used Simple Mail Transfer Protocol gmail host to send emails from gmail it works fine.but when try to send email from yahoo or outlook it doesn't work. Is it Possible to send emails from all type of mails like yahoo,outlook etc in Simple Mail Transfer Protocol using common Simple Mail Transfer Protocol host in c# ?
Yes, C# has built in support for sending emails using any standard SMTP server
If your question is more about why gmail and outlook didn't work when you tried you'll need to include more detail such as error messages. As long as gmail/outlook do provide an accessible and protocol compliant SMTP service on your country/to your location, and you're using it in accordance with their instructions/you're properly authenticating with an account that has access, and they aren't classifying your mail as spam then the mail should be sent as with any other SMTP service
https://support.google.com/a/answer/176600?hl=en
https://support.office.com/en-us/article/pop-imap-and-smtp-settings-for-outlook-com-d088b986-291d-42b8-9564-9c414e2aa040
There is a file with receiver email and sender email. My own smtp server receive messages and save them to files. How to send message to receiver through the next servers? If I understood correctly I should find the mx records by domain and try to send email. But the issue is how to authenticate my smtp-client considering that most of smtp servers require the authentication?
Please help me to understand if I am right and how to managed with.
i created a mail server for myself using hmail + roundcube + windows server 2008 - r2 installed on a vps!
every thing is ok about them and now i want to fetch emails from a specific email address created in hmail!
how can i read all those inbox emails?
thanks in advance
I would recommend using an IMAP library similar to this one featured in this post: http://www.codeproject.com/Articles/8008/IMAP-Client-library-using-C. Using IMAP your code will simply login to your server, in a similar fashion to a mail client and be able to access the mail box and mail. This specific library will allow you to return the mail message as an XML payload for you to process.
I have an application that run on server,
I want that my application could received mail in order to start some function.
I would like to know what should I need to do in order to have this capability?
Do I need to build SMTP server? if so, how should I do it?
You can try: http://www.lumisoft.ee/lsWWW/download/downloads/ .
There is SMTP server component what you can use to recieve emails.
Or alternatively there is SMTP server written in C#, you can write message filter for server.
In filter you can access incoming message and do what ever you want with it.
--- Yes also as others suggested will work ok too, you just run simple mail server and get emails by pop3 or imap. Pop3 and Imap components and example applications also included in same link.
You can use IIS6 to receive email and drop it into a specified folder. Your app can then pick up those emails and do whatever it needs to with them.
Active the SMTP service in IIS. It drops emails in the C:\inetpub\smtproot\drop folder IIRC.
Then you just need a Mime parser to read the EML files. I used the one in Lumisoft when I did the same thing.
You could use any Mailserver to receive the mail and have your application check the poxtbox every 1 minute to receive the mails.
When any mail arrived (or special subject as you need), you could execute your code.
For IMAP you could look at this Library
I have previously had some success using the Chilkat POP3 component to programmatically monitor a POP3 account for incoming mail.
I need to send an email in my C# project using my companies Exchange Server.
Because someone sent out thousands of Emails from my company using a self hosted server, any attempts to not use the company Exchange Server to send the email will be squished.
I imagine I am going to need to get an Active Directory user created to do this... but what code to use? How to do the sending?
You can send email through Exchange using SMTP with .Net's SmtpClient class.
You will need a login for the server.
You could use the System.Net.Mail classes to send the email via SMTP if that is enabled on your SMTP server. Alternatively you could use the webdav protocol to send the email via HttpRequests and HttpResponses. An example showing how to do this can be found here.