Results 1 to 2 of 2

Thread: Email

  1. #1
    Join Date
    Dec 1969

    Default Email

    When i try to attach a file using cdonts,it gives me the following error.<BR> error &#039 80004005&#039 <BR> Unspecified error <BR>What might be the problem????<BR>Iam able to send mails without attachment.<BR>I wrote the following code<BR><BR>set mycdontsmail=CreateObject("CDONTS.NewMail")<BR> mycdontsmail.from=""<BR> mycdontsmail.To="<BR> mycdontsmail.subject="This is a test message"<BR> mycdontsmail.body="Thank u"<BR> mycdontsmail.attachfile "c:acrobat.pdf"<BR> mycdontsmail.send<BR> set mycdontsmail=nothing<BR><BR><BR>Thanx ..<BR>

  2. #2
    Join Date
    Dec 1969

    Default RE: Email

    here is some code that i&#039m useing for email which is working....<BR><BR><BR> cStrServer = "server name"<BR> cStrMailbox = "senders mailbox id" &#039like<BR><BR> Response.Write("You are logged on as " & Request.ServerVariables("LOGON_USER") & "<BR>")<BR> bstrProfileInfo = cStrServer &chr(10) & cStrMailbox &#039insert a line feed<BR><BR> Set objSess = Server.CreateObject("mapi.session") &#039create session<BR> objSess.Logon "", "", False, True, 0, True, bstrProfileInfo<BR><BR> Set objFBMess = objSess.Outbox.Messages.Add<BR> objFBMess.Subject = "subject line here...."<BR> objFBMess.Text = ""<BR><BR> Set objRecips = objFBMess.Recipients<BR> objRecips.Add ("USERNAME") &#039 e-mail name to send message to<BR> objRecips.Resolve<BR><BR> Set MapiAttachment = objFBmess.Attachments.Add(,,,str)<BR> &#039 Response.write err.description<BR> objFBMess.Send<BR> objSess.Logoff<BR>

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts