Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7855359
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T20:21:34+00:00 2026-06-02T20:21:34+00:00

I am using MailAddress to create a fax email. We are using system called

  • 0

I am using MailAddress to create a fax email.
We are using system called SatisFAXtion v 8.6.
To provide a cover page for faxing I can add a template location to the mail.TO address.

The format looks like this:

12125551234^template=cp\\FAXReportCover.rtf@fax.ourcompanymail.com

When compiling it works fine but I need two backslashes so I added two more as escape characters.

When I run the program I get an exception:

Message: An invalid character was found in the mail header:
StackTrace: at System.Net.Mail.MailAddressParser.ParseLocalPart(String data, Int32& index, Boolean expectAngleBracket, Boolean expectMultipleAddresses)
   at System.Net.Mail.MailAddressParser.ParseAddress(String data, Boolean expectMultipleAddresses, Int32& index)
   at System.Net.Mail.MailAddressParser.ParseMultipleAddresses(String data)
   at System.Net.Mail.MailAddressCollection.ParseValue(String addresses)
   at System.Net.Mail.MailAddressCollection.Add(String addresses)
   at System.Net.Mail.Message..ctor(String from, String to)
   at System.Net.Mail.MailMessage..ctor(String from, String to)

Is there a way to insert backslashes in an email address in MailAddress object?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-02T20:21:35+00:00Added an answer on June 2, 2026 at 8:21 pm

    From Wikipedia:

    The restrictions for special characters are that they must only be
    used when contained between quotation marks, and that 3 of them (The
    space, backslash \ and quotation mark ” (ASCII: 32, 92, 34)) must also
    be preceded by a backslash \ (e.g. “\ \\””).

    Therefore, I don’t think your email address is valid as the backslashes are not contained between quotation marks.

    If you could change the address to something like 12125551234^template="cp\\"FAXReportCover.rtf@fax.ourcompanymail.com I think it would be ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm using system.net.mail and have a textbox that users can enter their email address
EDIT : Problem with the email I get mailbox unavailable exception! DBEmail.cs using System;
I'm trying to talk to Fax server software using an email. The fax server
I have a simple class called Applicant. I'm trying to add a template controller
am using system.net.mail to send email as shown below, but its too slow. it
using (var file_stream = File.Create(users.xml)) { var serializer = new XmlSerializer(typeof(PasswordManager)); serializer.Serialize(file_stream, this); file_stream.Close();
Using PHP, I can convert MySQL data or static table data to csv, Excel,
I have 2 validation forms on page. <div id='LogOn' style=background-color: White;> @using (Ajax.BeginForm(LogOnAjax, Home,
Is there a working example anywhere of how to create a meeting request using
I'm using the following piece of codes to create a new contact. It follow

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.