I spent too much time trying to get C# Code to work with UFT API so I just created a GUI test and called it from my API test, passing parameters to it.
Here is basic code:
SendFrom = ''MyUser@somewhere.com''
SendTo= ''Person@somewhere.com''
Subject = ''test email''
Body = '' This only a test SENT FROM UFT ''
Attachment=''''
Set ol=CreateObject(''Outlook.Application'')
Set Mail=ol.CreateItem(0)
Mail.to=SendTo
Mail.Subject= Subject
Mail.Body= Body
If (Attachment <> '''') Then
Mail .Attachments.Add(Attachment)
End If
Mail.Send
ol.Quit
Set Mail = Nothing
Set ol = Nothing
This worked quickley and easily. There's another [post about sending email from a GUI test][1].
[1]:http://eyeontesting.com/questions/4277/does-qtp-have-a-way-to-send-email-from-outlook.html