I have this form which works fine, but I wanted to send an email to the person who filled out the form for their record and confirmation that all data is correct.


Code:
set imsg = createobject("cdo.message")
    set iconf = createobject("cdo.configuration")
    Set Flds = iConf.Fields
    With Flds
   .Item ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2
   .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = smtp
     .Item ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25
     .Item ("http://schemas.microsoft.com/cdo/configuration/smtpconnectiontimeout") = 60
   .Update
   End With
   With iMsg
   Set .Configuration = iConf
        .To = "email@domain2.com"       'site visitor
        .Bcc = "email@domain1.com"      'send to us
        .From = "email@domain1.com"  
        .Subject = Subject
        .HTMLBody = HTML
        .fields.update
        .Send
    End With
    set imsg = nothing
    set iconf = nothing
    set HTML = nothing
it sends w/o a problem when the domain1 is used, but not when another domain name is used.

can someone more knowledgeable explain why?

thanks