Editing/removing headers when sending email

hi,

I need to send an email with a message-ID in the header.
At the moment when i send an email a message a message-ID is sent in the header that is not in the format i want. I have to remove the message-ID and add my own OR edit the message-ID to a specific format.
i have tried
....
objEmail.Headers.Remove("Message-ID")
objEmail.Headers.Add("Message-ID","dfasdafasf@url.com")

but still the email is sent with the original message-ID, any suggestions?
0
deekay2003
8/25/2004 5:19:16 PM
asp.net.getting-started 91979 articles. 3 followers. Follow

1 Replies
704 Views

Similar Articles

[PageSpeed] 59

Anyone know how to do this?
0
deekay2003
8/26/2004 7:15:53 AM
Reply:

Similar Artilces:

Edit email body before sending mail using vb.net
Code to Edit email body before sending mail to end users.Email body should contain username, Attached doc's list and some text.Any one plz in VB.net Thank you How far have you got with doing this yourself?  Are you getting error messages that you don't understand?  Have you developed the form to accept the initial text prior to allowing it to be edited?  If you have, all you need to do is display it in an editable format. Regards Mike [MVP - ASP/ASP.NET]My site You can try to create a email template for modifing when you send the email. hence you can replace ...

Sending Email Messages Error (Duplicated Thread. Please remove) [Edit]
Hi All I have a simple application that sends emails which I got from http://delphi.about.com/od/indy/a/email-send-indy.htm This works fine on my pc when in Delphi XE2 environment and also when I run the .exe on my pc. When running the .exe on other pcs on the network (that have email and network capabilities) I get a error message:- "ERROR: Service not available Status: Disconnected. Status: Disconnecting. Status: Connected. Status: Connecting to 192.168.1.1. Status: Resolving hostname Serv-mail01.Serv.local." I've run as Admin and still the same error. ...

Uploaded file doesn't get removed from server after sending email
Hello! After I upload a file to be sent as attachment, I want to be able to delete this file from the server.  I am using file.delete(filelocation), but it's working. Any help appreciated. James   PS: I am using asp.net 2.0 and vb.net  Please show some code.-- "Mark As Answer" if my reply helped you -- I got it to work..Had to dispose of message.  Thanks though!! James...

Cleaning/Sweeping Email-Headers before sending an email
Hey, I'm looking for an option in the preferences of or a plugin for the thunderbird which enables the program to remove specific headers before sending a mail. Example for Headers: X-Mozilla-Status X-Mozilla-Status2 UserAgent .... My Motivation for the search: ===================== >From my point of view, only necessary information should be given to others. Why should it be important that all members of a mailing list know my mail client and it's version? If i'm in trouble with my mail client, then i can come along with these information, but not before. ...

Sending Email with Net.Mail (No Email, no error)
hi,i'm using the system.net.Mail namespace to send an email from my application. when i send, the application does not fire any exception, neither does it send the email to my account.below is the code i'm using  Dim mmailMessage As New Net.Mail.MailMessage Dim mFrom As New Net.Mail.MailAddress(mailFrom) mmailMessage.From = mFrom Dim ll As String = "myname@ourmail.com" mmailMessage.To.Add(ll) mmailMessage.Subject = "Talk Concerns" mmailMessage.Body = "Testing Concerns One Two" Dim ...

Getting email address in gridview row and send email
Hi guys, How do i get the email address in my gridview rows?  I wanna get all the email address of all of my records in the gridview and use the email address to send an email to the owner. Thanks,*A newbie C# programmer* hi have a look at threse related : http://forums.asp.net/p/1119999/1746089.aspx#1746089http://forums.asp.net/t/1062163.aspxhttp://www.velocityreviews.com/forums/t93436-gridview-hyperlink-column-mailto-event.html Regards,Anas Ghanem.Note:Please Don't hesitate to click "Report Abuse" link if you noticed something wrong on the forums (l...

how to get the correct email format when sending email using sqldatareader
I'm getting the email address from an excel sheet.But i need to send the email to multiple peopleWhen printing the below i geta@a.com;b@b.com;; But i want a@a.com;b@b.com; i don't need the extra semicolon Thanks code below------ while (oledr.Read()) { smail = oledr[0].ToString() + ";" + "<br>";   //smail += oledr[0].ToString() & ";"; //mail.To.Add(smail); //this.Label1.Text = smail; Response.Write(smail); }   If oledr[0].ToString() contains only one email address (and not a few), then you can do it this way:while (oled...

Get email address from DB and send email using VB
OK every time I figure something out on my own, there's 10 more things I can't seem to figure out. I feel like a VB moron. Ha. Anyway. Here's what I need to do...1. Retrieve the email addresses from my database table of people whose memberships to my organization has expired in the past month.2. Somehow plug those email addresses into a code to send them a prewritten, preformatted email.I have found an article on how to send an email using VB coding. I just don't know how I would send one email to every person whose membership has expired in the past month. Ideally, I'd like to be able to lo...

EMail address removed from address book remains when I send EMail to a list
I don't understand why I can't remove an EMail address from a mailing list. An address I removed from a mailing list remains when I send EMail to a list. Consequently unwanted mail is sent and I receive bounce messages in return - - since it is no longer valid. What is required to remove an entry from a mailing list and rely that it won't be included as if I had not removed it? -- Regards, TOM BLACKWELL TOM BLACKWELL wrote: > > I don't understand why I can't remove an EMail address from a mailing list. > > An ad...

Sending an Email with system.net.mail -- problem with strings and body of the email.
Hi,I am trying to email the contents of a contact form such that the email body looks like this:Last name: Smith First name: John Comment: Test comment. I am using the MailMessage object.I am storing the textbox values in strings://assign values from form to variables   string first = textboxFirst.Text;   string last = textboxLast.Text;   string comment = textboxComment.Text;and then combining the strings into one string for my MaiMessage.Body property.  //create message body from textbox variables     string message = "Last Name: "  + l...

get a security error - get certificate
This has only happened with one person. In trying to send an email to time warner (not an issue I don't think) when he trys to add his signature he gets 'security error' you do not have a security certficate. Talk about being the wrong error for this one. any ideas? GW7sp2 On Wed, 10 Oct 2007 20:18:51 +0000, mark wrote: > This has only happened with one person. In trying to send an email to > time warner (not an issue I don't think) when he trys to add his signature > he gets 'security error' you do not have a security certficate. Talk >...

Mass Email sending or Bulk sending email
  i have a Problem regarding Email sending ie : Bulk sending mails --> let me explain Clearly i have an excel sheet in that there are around 3000 Records and in that each and ever record has a unique email id( it can be either gmail , yahoo. or hotmail )so , now i need a soluction for how to send a Bulk email at a timeas i told earlier  , each record contain Unique email id , so i need to send email for individual recodes in excel with appropriate record data  for the above probm , i have writen a program with foreach loop --> it is like, i have taken a co...

Getting started [Edit]
Hi all, im looking for to the best way to establish a communication between applications using the web, perhaps using http or https, im not sure. I think that the model would be the traditional, a web service and clients. At the moment, im focused in the client side. Im a Delphi programmer for a long time, but i never used that approach. So, im asking for any help to have a good start and to use the best practice. Bellow, some aspects that i think to be important to consider: - which component(s) i have to use to implement the communication? (I have preference for the borland's nati...

Web resources about - Editing/removing headers when sending email - asp.net.getting-started

Users Protest Facebook Removing Breast-Feeding Pics
... states that they support the sharing of breast-feeding images, yet they say they cannot control the actions of their employees who keep removing ...

Removing App Profile Pages
Today, we are announcing that we will remove all App Profile Pages on February 1st, 2012. Though similar in appearance, the automatically generated ...

Facebook removing ‘Page Post’ from naming of ads
Facebook has already simplified the way it offers advertising, now the company is trying to remove some of the redundancy from the naming of ...

Removing the 140-character limit from Direct Messages
If you’ve checked your Direct Messages today, you may have noticed that something’s missing: the limitation of 140 characters. You can now chat ...

Decapping ICs (removing epoxy packaging from chips to expose the dies) - YouTube
I thought it would be interesting to try decapping some chips. This involves using fuming nitric acid, which also seemed fun, so I thought I ...

Kmart joins Target in removing GTA5 video game from shelves after online campaign
Target has bowed to pressure from an online campaign calling it to pull popular R-rated video game Grant Theft Auto V from its shelves.

Ten denies removing The Shire from schedule
Ten denies removing The Shire from schedule

Christian lobby group hails Hilton Hotel for removing on-demand porn from hotels
A decision to banish hardcore porn from Hilton hotel rooms will have its private dissenters but a New Zealand Christian lobby group says it's ...

Roger Rogerson and Glen McNamara seen on CCTV removing body of Jamie Gao from storage unit
ROGER Rogerson and Glen McNamara were captured on CCTV &#8220;bending, lifting and kneeling down&#8221; as they &#173;removed the body of shooting ...

Bud Light beer ads: “Removing no from vocabulary” outrage - Business News - Business and Finance News ...
US BEER brand Bud Light has apologised and retracted a slogan which suggested having a drink would remove the word &#8216;no&#8217; from your ...

Resources last updated: 12/6/2015 12:35:43 PM