I am trying to send mail using vb.net from iis through a smart host (mailenable) and out through the internet. When I send mail without attachments it goes out just fine. When I send mail created the same way with an attachment the smart host gets an error sending the email.
"mailenable the remote server appears to have failed or to have rejected the contents of the message"
The smart host is correctly set up with reverse dns and MX records set up correctly. What am I missing?
- Happens with .txt and .jpg files both - Attached using system.net.mail.attachment(inputstream, attachmentname, mimetype)
- The remote server is rejecting it
- the smarthost is making an attempt
- Sending attachments to the remote server using outlook works fine