P
Paul Cheevers
Hi,
This is driving me nuts to say the least!!!!!
I am trying to send an email from some server side ASP code and the CC field
is giving me some problems.
The code works fine if I have one or 2 email addresses in the field (The
addresses are valid.) However if I have 4 it breaks. Now the good
part......If I copy the 4 addresses (that were causing the problem) into the
field a few times, so basically I have 16 addresses the code works!!
I don't get an error back from the code when it breaks and I don't see any
emails in the Bad Email, Pickup or Queue folders, the email just doesn't
sent at all.
Also if I put the 4 addresses into the BCC field it works fine. It only
breaks on the CC field.
The code is included below, any help would be greatly appreciated.
Cheers,
P.
Dim cdoNewMail
Set cdoNewMail = safeServerCreateObject( "CDO.Message" )
' Populate its properties
'cdoNewMail.MailFormat = 0 ' MIME format
cdoNewMail.From = """" & FromName & """" & "<" & FromEmail & ">"
cdoNewMail.To = strToEmail
' Get the CC List
cdoNewMail.Cc = getCCList
cdoNewMail.Subject = Subject
cdoNewMail.HTMLBody = Body
'if the attachment file name is set then attach the file to the mail
If(strFileName <> "") Then
cdoNewMail.AddAttachment strFilePath
End If
' Send the message
cdoNewMail.Send
' Cleanup
Set cdoNewMail = Nothing
This is driving me nuts to say the least!!!!!
I am trying to send an email from some server side ASP code and the CC field
is giving me some problems.
The code works fine if I have one or 2 email addresses in the field (The
addresses are valid.) However if I have 4 it breaks. Now the good
part......If I copy the 4 addresses (that were causing the problem) into the
field a few times, so basically I have 16 addresses the code works!!
I don't get an error back from the code when it breaks and I don't see any
emails in the Bad Email, Pickup or Queue folders, the email just doesn't
sent at all.
Also if I put the 4 addresses into the BCC field it works fine. It only
breaks on the CC field.
The code is included below, any help would be greatly appreciated.
Cheers,
P.
Dim cdoNewMail
Set cdoNewMail = safeServerCreateObject( "CDO.Message" )
' Populate its properties
'cdoNewMail.MailFormat = 0 ' MIME format
cdoNewMail.From = """" & FromName & """" & "<" & FromEmail & ">"
cdoNewMail.To = strToEmail
' Get the CC List
cdoNewMail.Cc = getCCList
cdoNewMail.Subject = Subject
cdoNewMail.HTMLBody = Body
'if the attachment file name is set then attach the file to the mail
If(strFileName <> "") Then
cdoNewMail.AddAttachment strFilePath
End If
' Send the message
cdoNewMail.Send
' Cleanup
Set cdoNewMail = Nothing