I am not a programmer, but instead a business owner who has 97% of my custom built software complete. Unfortunately my developers didn't finish the last bit before moving on to another project. I wanted to point that out as I will most likely ask some novice questions regarding VB.Inside of our software (written on VB.net) we have an e-mail admin section for automated e-mails sent when certain actions occur. These e-mails populate variables/values from the DB before sending. I have noticed that the e-mails work perfectly fine unless I make seemingly simple changes to them. For example, If I add a <p></p> section with text the code breaks and the e-mail doesn't populate correctly, leaving many of the would-be filled in values blank
MVC3, VB.NET. I have a function in my app that is supposed to use a html file's contents for the email body. However what I have so far is failing at the mail.body = file.readalltext(_body) line..
http:[url].....To convert some outlook HTML to plain text.It nearly works, the only thing that it leaves behind is the CSS which outlook places in html comment tags <!-- --> in addition to <style> tags (which are removed).This is the original text:
I am trying to send an email message in HTML Format. I have a richtextbox the the user can change the color and font in the message. Below is the code I am using which ends up send in Text Format. Most codes I have found use System.WebMail which in vb 2008 is obsolete. This snippet is using System.Net.Mail namespace.
Public Shared Function SendEmailMessage(ByVal sendTo As String, _ ByVal sendFrom As String, _ ByVal sendSubject As String, _
I'm sure I'm doing something wrong because I can't see how the problems I'm having with controls' appearance in Win7 can be normal. When "Enable XP visual styles" is enabled in my application, my progressbars never fill and gridlines don't show in Listviews. Disabling XP visual styles fixes those problems, but then everything looks like Win98 and that's no solution.
I am using this editor for the users to enter their text in the database interface environment that will both load/save/show them what they are working on in the form and also mail-merge into a Word document waiting for the content. I can do the first step and it works well, but how do I get MS Word to recognize HTML as formatting instead of just merging in tags and text all as text?
The tool has two relevant properties: one to get just the text (no markup, i.e. no HTML) and one to get the full markup with HTML. Both of these are in text format (which I use for easy storage in the Database).
ideas/directions I can think of:
1) use the clipboard. I can copy/paste the content straight from the editor window to Word and it works great! But loading from a database is significantly different, even when using the clipboard programatically. (maybe I don't understand how to use the clipboard tools)
2) maybe there is a library or class/function in Word that can understand the HTML as "mergable" content?
I am using VB.Net (Not C#) in a windows form. I am using System.Net.Mail, Not System.Webmail as it is obsolete. I cannot find any examples on sending a message in HTML Format. In my application I allow the user to choose color and fonts using a Rich Textbox. This is the start of my routine I have when they press send:
I want one of my applications to send an HTML email message to a user with a hyper link in it to start up an executable with arguments passed to it. It works fine if I just specify the executable path with no arguments. But if I pass the arguments then Outlook says it can't find the file. Here is the line that I add to the email message body to start the exe only:
I need a feedback form for my site.i need the user to write there.
Mail Title Info
And then when they press send then i get a mail to my hidden mail and a confirmation is send to the user mail.I have google the web but cant find any good info about this, i know how to make the form but how do i make the codebehind !?
Do any of u pro. have a link to a great tutorial or have a code that can be used !?
I am a one man dev shop and need some outside opinions on how to approach this project.
I need to create a "post office" program that will send html emails thru the system.net.mail framework.
For each job submitted to the postoffice the app would need to read a user created html email string from the database, read a string of email addresses to send to and send out the emails based on a set processing time.
The first step would be to parse out the email addresses to find out how many emails it needs to send out and determine how many it would need to send per minute to complete the job in 20 minutes tops. I.e. if 1000 email addresses are submitted per job it would determine that it needs to send 50 emails per minute to complete the job.
The part I am stuck on is how I should queue the emails. If the app determines it needs to send 50 a minute should I only load up the first 50 on a timer event then get the next 50 queued up for the next timer tick? Or would it be better to load up all 1000 in a loop and build in some kind of wait time after it sends the first 50?
how i can write a realy basic e-mail program. all the program will need to do is recieve mails show the mail in a tekstbox and the subject in an other text box.or if you can tell me how i can let vb read things on my screen...
I have a piece of code which sends email with an attachment from my application. The code uses MAPI to send the email. It opens up a new email message so the user can add to the email message, and then the user clicks send.The code works fine. However there is one small problem. The email that the code opens, is always in Microsoft Outlook. Sometimes the application's user has Outlook Express set up as the default client, but my application always opens the new email message in Microsoft Outlook. (Outlook 2003. In the one user's machine that has Outlook 2007, everything works fine and the email opens up in Outlook Express.)As I searched for a solution, I saw this problem posed many times in various places on the Internet, with no solution (or none that worked). I did try several suggestions which involved creating registry settings and registering some dlls.
I am teaching myself vb.net and wanted to change this code to have an embedded mail.boby from a text file instead of the file attachment. Code spippet below and where I need help is mail.Body = ("tracertALL.txt") that just puts the name of the file NOT the contents of the file. This code is a CMDWrapper that runs a batch file and I want the contents of a trace route that is pipe to a file >> tracertALL.txt .
I'm trying to update some older software which uses the now-declared-obsolete System.Web.Mail classes.Unfortunately, I don't really know a heck of a lot about email, so I'm looking for advice.
Here is the fragment of code I'm looking at revising:
[Code]...
From what I can tell, this should be configuring some kind of sending option. I can kind of work out what's going on, but I don't know how I should go about re-implementing it.It's looking like the place to be putting this stuff is now in the System.Net.Mail.SmtpClient.Credentials class, but the information in there doesn't seem to bear any resemblance to what I have here.I'm almost certain I'm making some obvious error, here, but I can't see it. Can someone tell me what I should be doing?
I'm teaching myself vb.net and found this VB.NET SMTP codeand I wanted to add a mail.cc and mail.bcc but get an error Property cc is ReadOnly.and don't know how to fix. then I found this code
Dim CC As MailAddress = New MailAddress(TextBox5.Text) 'For some reason it's required field mail.CC.Add(CC)
I want to have an email client in my vb using just the web browser of it.I want it to auto log in and will not display the log in page instead it will login automatically in the website.It will show directly your mail inbox or let you in automatically log in your email account.I will give the default password and username that will be use in the email account using a textbox found in my form.
I'm very new to VB and .Net. I'm using VS Express 2010 to write an application, so far its great and I've managed to get everything working they way I want it. I'm now trying to add more advanced features, (e.g the app has some TextBox's that the user enters required information and it generates an e-mail based on a template I've coded. At the moment this just copies it to the clipboard and the user can create an e-mail and send it manually.)
I want to add the functionality for the app to automatically open up an Outlook mail and pre-populate all the information, I've managed to get this working for Outlook 2010. I done this using the following codes.
Dim MSO As New Microsoft.Office.Interop.Outlook.Application 'Create a new Message object Dim msg As Microsoft.Office.Interop.Outlook.MailItem 'Compose the Message
I am getting error when I am putting my sendmail function into other thread. But without threading the message was sent successfully. I am getting error in this part when sending using thread. mail.Body = EmailBody.DocumentText It say: Specified cast is not valid. Here is my code for sending email EmailBody is a webbrowser in Desing MOde ON
I have an sql database with client email addresses.I need to send out reminders at certain dates that vary per client. Is there a way for me to draw only the clients that need to receive the reminders out of the database and then send an email to each one of them?From what I have found so far, it looks like I can set up the smtp fairly easily.I just don't know how to get the client's that I need and then cycle through each one.
Automagically enter the distribution name in the To field and PersonA, PersonB in the CC field, the Subject and the Body all prefilled and, hopefully the user's signiture so that all the user has to do is click on send?
This may sound really stupid but I have to ask cause I'm not finding this answer anywhere.I have an application where the user will need to sign up for a new user account on the website [URL]..However when I am using Firefox's plug-in Firebug to view html I am getting something totally different than when I just right click on the site and view the page source.
What I am trying to do is to get the captcha from the website and display it in a picturebox on the application so the user can view the captcha, solve the captcha and then the app post is back to the service for a response.
Here is the source that I am getting using Firefox's Firebug to inspect the element:
<td> <input type="hidden" value="Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK" name="iden"> <img class="capimage" src="/captcha/Oo3Jo1I8bgzK68agMqo3s79ZZib2OkbK.png" alt="i wonder if these things even work"> </td>
[Code]...
Why would the two be showing me two different versions of the HTML?
And how would you be able to grab that source to view in a picturebox using webclient?