Forum Discussion

m_essaid's avatar
m_essaid
Valued Contributor
10 years ago
Solved

the exclamation point is inserted randomly in my mail

Hi,

Send a mail which resume all the tests I make.

But randomly an exclamation mark is inserted in some places of the mail.

When I get this "!" within a sentence, it's not pretty but it's harmless.

When I get it in a <a href.... , it brokes the link. Which is really annoying.

I don't use global variables. I write in a txt temp file my HTML code, and put it in the body of the mail function.

Anyone could help ?

Thank you in advance,

Mehdi

  • Possibly this variable MsgErreur exceeds 1024 characters.

5 Replies

  • Ryan_Moran's avatar
    Ryan_Moran
    Valued Contributor

    Are you using a CDO message to send the email?

    Can you post your function that compiles and sends the message, a sample of your tmp file that experiences the issue, and whatever function writes the tmp file?

    • m_essaid's avatar
      m_essaid
      Valued Contributor

      Hi Ryan,

       

      Yes I'm using CDO Messages.

       

      A part of the temp file :

       

      <p>
      <FONT face="calibri">example of text</FONT><BR />
      <FONT face="calibri" color="green"><B>example of successful test.</B></FONT>
      <p>

       

       

      I debugged the tmp file when it is sent to the SendMail function. There is no exclamation mark.

       

      The path of the link is specified like this in the procedure that calls SendMail function :

       

      if SendEmail('sender',
      'receiver',
      'Tests',
      LireCorpsMail() +
      '<P><FONT face="calibri"><a href="W:\SCENARIOS_TEST\TESTS_COMPTA\RapportCompta' + Suffixe + '.mht">Cliquez ici pour lire le rapport.</a></FONT></p><P>' + MsgErreur + '</p>',
      '') then
      Log.Message('Message sent.');

       

      LireCorpsMail is just a method that reads the temp file.

       

      When I debug this call of the SendMail function there is no exclamation mark.

       

      When I receive the mail, there is one in the middle of a link, in example : 12_03_! 2015

       

      Thanks for your patience,

       

      Mehdi

       

      • Ryan_Moran's avatar
        Ryan_Moran
        Valued Contributor

        [Edit]

        Scratch that last reply. Didn't notice you're using the built in SendEmail function.

        This seems more like the issue you're seeing:

         

        Link here.

         

        You likely need to have embedded line breaks as suggested by that link. I.E. "\r\n"