Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Random Exclamation Points in Email Message sent from VBA

Avatar of tommyboy115
tommyboy115Flag for United States of America asked on
7 Comments1 Solution618 ViewsLast Modified:
Hello (I'm asking this question under Access now, I had previously asked it under HTML without much result),

I'm sending email messages with vbSendMail through Access & VBA.  Everything works great, however, when the message is really long, totally random exclamation points show up in the text of the message when viewing it as the recipient.  I've seen some solutions for this with PHP users and the use of wordwrapping, but I'm a novice HTML person and not sure how to translate that solution over to something that will work for me.  They referenced that a message can only be so long for transfer over SMTP and must have line breaks.  Here is the code for sending the message.  "eMessage" is a variable containg the message text and is from a Memo field in an Access table.

 poSendMail.Message = "<body background=http://www.e-afa.com/ans/BG.JPG>" _
                    & "<div align=center>" _
                    & "<table border=0 width=652 cellspacing=0 cellpadding=0 id=table1> <tr>" _
                    & "<td><img border=0 src=http://www.e-afa.com/ans/HEADER_AFA_BULLETIN.JPG width=652 height=236></td>" _
                    & "</tr> <tr>" _
                    & "<td height=508 background=http://www.e-afa.com/ans/BODY.JPG valign=top> <div align=center>" _
                    & "<table border=0 width=583 cellspacing=0 cellpadding=0 id=table2 height=300> <tr>" _
                    & "<td valign=top><font face=Arial size=2> " & eMessage & " </font></p><br>" _
                    & "<p><font face=Arial size=1>Special Note: Attachments to this email, if any, were created with Adobe Acrobat.&nbsp; To view these attachments, you may download the free Acrobat Reader at " _
                    & "<a href=http://www.adobe.com/products/acrobat/readstep2.html>http://www.adobe.com/products/acrobat/readstep2.html</a>.</font></td>" _
                    & "</tr> </table> </div> </td> </tr> <tr>" _
                    & "<td><img border=0 src=http://www.e-afa.com/ans/FOOTER.JPG width=649 height=100></td>" _
                    & "</tr> </table> </div> </body>"

Any thoughts would be appreciated.  Thanks!

Avatar of giltjr
This problem has been solved!
Unlock 1 Answer and 7 Comments.
See Answers