I have JMail working without attachments but now want to start using this feature. When using the .addattachment though the email received contains the binary data of the attachment - see example below.
Code Example:
Expand|Select|Wrap|Line Numbers
- Set JMail = Server.CreateObject("JMail.SMTPMail")
- JMail.ServerAddress = "mailhub.registeredsite.com"
- Jmail.ContentType = "text/plain"
- JMail.Sender = "fromsomeone@testing.com"
- JMail.Subject = "Attachement Test"
- JMail.AddRecipient "tosomeone@testing.com"
- JMail.Body = "Testing email links"
- JMail.Priority = 3
- JMail.AddHeader "Originating-IP", Request.ServerVariables("REMOTE_ADDR")
- JMail.AddAttachment ("\\atl.hosting.int\storage\IPSWX0013ATL2\userIDNumber\www\testing.txt")
- JMail.Execute
This is a multipart message in MIME format.
----NEXT_BM_0D8EA709985B46BB912D9180055D5931
Content-Type: text/plain;
charset=so-8859-1"
Content-Transfer-Encoding: Quoted-Printable
Testing email links
----NEXT_BM_0D8EA709985B46BB912D9180055D5931
Content-Type: application/octet-stream; name=?iso-8859-1?Q?testing.txt?=
Content-Transfer-Encoding: base64
Content-Description: =so-8859-1?Q?testing.txt?Content-Disposition: attachment; filename=?iso-8859-1?Q?testing.txt?=
Content-ID: <579B7F14D4EA4EFC8740E1C9CDAE3F08>
VGhpcyBpcyBhIHRlc3QgZmlsZSB0aGF0IEkgaGF2ZSBhdHRhY2 hlZCB0byBh
biBlbWFpbC4
----NEXT_BM_0D8EA709985B46BB912D9180055D5931--