Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

can view attachment through outlook but not yahoo mail - why?

Status
Not open for further replies.

BillLumbergh

Programmer
Aug 15, 2001
51
US
I am using CDONTS to send email from a web page. I have added the functionality to send attachments. I sent a word document to both my work email (viewed through MS Outlook) as well as my personal yahoo address. In Outlook, the attachment is recognized and can be opened, saved, etc, as expected. However, in yahoo, it does not even recognize it as an attachment (no attachment icon in inbox). It basically appends the attachment to the end of the message body as a bunch of gobble-de-gook, like when you use notepad to try to open a word document. I have successfully received word documents in my yahoo email before so I know that that is not the problem. What can I do?

Here is some of my code:

Set objNewMail = CreateObject("CDONTS.NewMail")
With objNewMail
.From = strSenderEmail
If strTo <> &quot;&quot; Then .To = strTo
If strBCC <> &quot;&quot; Then .Bcc = strBCC
.Subject = strSubject
.Body = strMessage
.BodyFormat = 0
If Len(strAttachPath) > 0 Then
.AttachFile strAttachPath
End If
.Send
End With

'where strAttachFile is the path to the file on the
' machine from which it is being uploaded
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top