|
-
Nov 28th, 2007, 02:03 PM
#1
Thread Starter
Frenzied Member
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,
Don't anthropomorphize computers -- they hate it
-
Nov 28th, 2007, 02:07 PM
#2
Re: sending email
Why does the user need to enter in any smtp info?
Are you using System.Net.Mail?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 28th, 2007, 02:09 PM
#3
Thread Starter
Frenzied Member
Re: sending email
yeah,
i'm using system.net.mail.smtpclient.
i have to specify the host, do i not?
Don't anthropomorphize computers -- they hate it
-
Nov 28th, 2007, 02:18 PM
#4
Re: sending email
Yes, but why are you having the user enter in smtp info?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 28th, 2007, 02:19 PM
#5
Thread Starter
Frenzied Member
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?
Don't anthropomorphize computers -- they hate it
-
Nov 28th, 2007, 02:23 PM
#6
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?
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 28th, 2007, 02:25 PM
#7
Thread Starter
Frenzied Member
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.
Don't anthropomorphize computers -- they hate it
-
Nov 28th, 2007, 02:26 PM
#8
Thread Starter
Frenzied Member
Re: sending email
if i'm not making sense, please provide any suggestions/examples you may have.
Don't anthropomorphize computers -- they hate it
-
Nov 28th, 2007, 02:31 PM
#9
Hyperactive Member
Re: sending email
You could use your own smtp server. I've seen people get google mail accounts just for that purpose.
Visual Studio .NET 2005/.NET Framework 2.0
-
Nov 28th, 2007, 04:08 PM
#10
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.
VB/Office Guru™ (AKA: Gangsta Yoda™ ®)
I dont answer coding questions via PM. Please post a thread in the appropriate forum. 
Microsoft MVP 2006-2011
Office Development FAQ (C#, VB.NET, VB 6, VBA)
Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
If a post has helped you then Please Rate it! 
• Reps & Rating Posts • VS.NET on Vista • Multiple .NET Framework Versions • Office Primary Interop Assemblies • VB/Office Guru™ Word SpellChecker™.NET • VB/Office Guru™ Word SpellChecker™ VB6 • VB.NET Attributes Ex. • Outlook Global Address List • API Viewer utility • .NET API Viewer Utility •
System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6 
-
Nov 28th, 2007, 06:01 PM
#11
Fanatic Member
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.
Please RATE posts, click the RATE button to the left under the Users Name.
Once your thread has been answered, Please use the Thread Tools and select RESOLVED so everyone knows your question has been answered.
"As I look past the light, I see the world I wished tonight, never the less, sleep has come, and death shall soon follow..." © 1998 Jeremy J Swartwood
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|