Click here to Skip to main content
15,895,283 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have this code :(


VB
Dim messageId = Guid.NewGuid()
        MsgBox(messageId.ToString)
        Dim deliveryProcessor = "http://localhost:3738/SendEMailx/SendEMailx/email-delivery.aspx"
        Dim imgTag = String.Format("<img src=""http://www.earabdirectory.com/Uploads/Classifieds/162/162Big.jpg"" alt=""xxxx"" />", deliveryProcessor, messageId)


        Dim mail As New System.Net.Mail.MailMessage()
        mail.To.Add(txtEmailReceiver.Text)
        mail.From = New MailAddress(txtSenderEmail.Text, "Murad Hamdan", System.Text.Encoding.UTF8)
        mail.Headers.Add("Disposition-Notification-To", txtSenderEmail.Text)
        mail.Subject = Convert.ToString(txtSubject.Text).Trim()
        mail.SubjectEncoding = System.Text.Encoding.UTF8
        mail.Body = Convert.ToString(txtBody.Text).Trim()
        mail.Body += imgTag
        mail.BodyEncoding = System.Text.Encoding.UTF8
        mail.IsBodyHtml = True
        mail.Priority = MailPriority.High

        Dim client As New SmtpClient()
        client.Credentials = New System.Net.NetworkCredential(txtSenderEmail.Text, MyPassword)
        client.Port = CInt(587) '587
        client.Host = txtSMTP.Text '"smtp.gmail.com"
        client.EnableSsl = CBool(0)
        client.Timeout = 2000000
        Try
            client.Send(mail)
        Catch ex As Exception
            MsgBox(ex.Message)
        End Try
Posted
Updated 1-Apr-15 0:44am
v2

1 solution

You can't tell if an email is read: there is often an option to "request a read response" when you send an email, but even that doesn't guarantee an indication will get back to you. The problem is that spammers did use it to find "live" email accounts, so most systems ask the user if he want's to send a response rather than sending it automatically.

And most systems are set up to not access images unless they are embedded in the email rather than external links for exactly the same reason.

As a result, the only way to be sure an email has been read is to provide a link and require the reader to click it to show it has been read, or at least opened and scanned by a human.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900