-
sending email
Hey,
I have an application where I want to allow the users to e-mail me with any errors.
I am currently using SMTP client but that requires the end user to enter the smtp server and I want to avoid that.
When using mapi, it always prompts me with a user interface.
Does anyone know if I can send e-mail silently?
Thanks,
-
Re: sending email
Why does the user need to enter in any smtp info?
Are you using System.Net.Mail?
-
Re: sending email
yeah,
i'm using system.net.mail.smtpclient.
i have to specify the host, do i not?
-
Re: sending email
Yes, but why are you having the user enter in smtp info?
-
Re: sending email
I know I can pull that from the registry.
What happens if they do not have a mail client configured on their machine?
-
Re: sending email
Maybe Im missing something but are you wanting the user to provide their email address or are you using some kind of mailing about your app that should be transparent to the user?
-
Re: sending email
no,
each time an error occurs, i want to be able to e-mail me about it.
the user is shown an error message and the option of sending it to me.
I want to be able to e-mail it without any user input except the pressing of the 'Send' button.
using the smtp client requires me to specify the host which I can either have teh user enter or pull from registry. it is not a guarantee in teh registry however.
So I am asking if anyone knows of a way where I can send e-mail through mapi for example without having any windows appear.
-
Re: sending email
if i'm not making sense, please provide any suggestions/examples you may have.
-
Re: sending email
You could use your own smtp server. I've seen people get google mail accounts just for that purpose.
-
Re: sending email
Im back. So I take it that you dont have access to your own smtp server then. That would be a problem. You might need to allow relaying on your SMTP server in order to send mail. Most providers dont allow this and is why you are better off with your own server.
-
Re: sending email
This is only an alternative to email.
If you have a website, or server somewhere, you could have your program connect and upload the information to the website, or, connect to a listening program on your server, and download the file/information.