Programmatically Generated Email Problems using VB.Net

K

keal75

I'm trying to read data from a multi-line textbox into an email subroutine.
However when i attempt to do this using SmtpMail.Send(msg), all the data from
the textbox looks like this:

[9/21/2005 7:36:19 AM Updated by smorga10] Project pending since 9/19/05.
SSIT Fields haven't been updated as requested. Project cancelled 9/21/05.
[9/20/2005 9:13:26 AM Updated by smorga10] Project still pending. [9/19/2005
7:57:36 AM Updated by smorga10] Project pending. SSIT fields can't be more
than 20 characters. Please update the subs that have more than 20 characters.

However when i use the SmtpMail.Send(msg.From, msg.To, msg.Subject,
msg.Body) property, the above data is formatted correctly but i cannot send
attachments nor use the BCC property:

[9/21/2005 7:36:19 AM Updated by smorga10]
Project pending since 9/19/05. SSIT Fields haven't been updated as
requested. Project cancelled 9/21/05.

[9/20/2005 9:13:26 AM Updated by smorga10]
Project still pending.

[9/19/2005 7:57:36 AM Updated by smorga10]
Project pending. SSIT fields can't be more than 20 characters. Please
update the subs that have more than 20 characters.

My question: How do I properly format the data from the multi-line textbox,
as demonstrated above, and still send attachments & use the BCC property?

Any help would be greatly appreciated!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top