Sending emails from VB application like outlook
Sending emails from VB application like outlook
Sending emails from VB application like outlook
Sending emails from VB application like outlook
Sending emails from VB application like outlook
Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook
Sending emails from VB application like outlook Sending emails from VB application like outlook
Sending emails from VB application like outlook
Go Back  Xtreme Visual Basic Talk > > > Sending emails from VB application like outlook


Reply
 
Thread Tools Display Modes
  #1  
Old 09-11-2014, 10:38 PM
python01 python01 is offline
Newcomer
 
Join Date: Jun 2008
Posts: 22
Default Sending emails from VB application like outlook


I have written an application in VB.NET which reads excel file and then sends some emails out based on the content of the file.
Although everything works fine on my home workstation with my internet provider SMTP server, at the office it is not sending any emails. When I contacted IT I received the following reply:
"In order for this to work on base workstations you would need to make sure the application can send an email much like Outlook would send SMTP emails…"
Could anyone let me know how to write code to emulate outlook? Or what steps to take to make sure my application behaves in same fashion as outlook would?
Below is my code used to send emails:

'Send email
Dim mailInstance As MailMessage = New MailMessage(fromemail, recipientemail, subject, emailbody)
Dim mailSenderInstance As SmtpClient = New SmtpClient(smtpaddress, portnumber)
mailSenderInstance.UseDefaultCredentials = False
mailSenderInstance.EnableSsl = enablessl
mailSenderInstance.Credentials = New System.Net.NetworkCredential(username, emailpassword)
mailSenderInstance.Send(mailInstance)
mailInstance.Dispose()

Thank you for your help.
Reply With Quote
Reply

Tags
communication, email, internet, outlook, smtp


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
Sending emails from VB application like outlook
Sending emails from VB application like outlook
Sending emails from VB application like outlook Sending emails from VB application like outlook
Sending emails from VB application like outlook
Sending emails from VB application like outlook
Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook Sending emails from VB application like outlook
Sending emails from VB application like outlook
Sending emails from VB application like outlook
 
Sending emails from VB application like outlook
Sending emails from VB application like outlook
 
-->