4 Replies - 255 Views - Last Post: 06 November 2017 - 01:02 AM Rate Topic: -----

#1 Eng.madar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-October 17

I want to send Email using asp

Posted 02 November 2017 - 08:36 AM

my code is working but the sender is not show the email for SENT ITEMS.
My code is below:
    Dim sendFromEmail As String = txtFrom.Text
        Dim sendFromPassword As String = txtpassword.text
        Using client As New SmtpClient("smtp.office365.com", 587)
            client.Credentials = New NetworkCredential(sendFromEmail, sendFromPassword)
            client.EnableSsl = True
            client.TargetName = "STARTTLS/smtp.office365.com"

            Dim mail As New MailMessage()
            mail.From = New MailAddress(sendFromEmail)
            mail.[To].Add(txtto.Text)
            mail.Subject = Me.txtSubject.Text
            mail.Body = Me.txtBody.Text
            mail.IsBodyHtml = False

            client.Send(mail)
        End Using
:code:

This post has been edited by modi123_1: 02 November 2017 - 08:38 AM
Reason for edit:: In the future, please use the [code] tag button in the editor.


Is This A Good Question/Topic? 0
  • +

Replies To: I want to send Email using asp

#2 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13491
  • View blog
  • Posts: 53,888
  • Joined: 12-June 08

Re: I want to send Email using asp

Posted 02 November 2017 - 08:38 AM

I don't get it.. is the issue the person doesn't receive the email?
Was This Post Helpful? 0
  • +
  • -

#3 Eng.madar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-October 17

Re: I want to send Email using asp

Posted 02 November 2017 - 09:12 AM

is not the Issue for receive the email the receive is fine but the sender is not receive the email for Sent Items for his accoun gmail.
Was This Post Helpful? 0
  • +
  • -

#4 modi123_1  Icon User is online

  • Suitor #2
  • member icon



Reputation: 13491
  • View blog
  • Posts: 53,888
  • Joined: 12-June 08

Re: I want to send Email using asp

Posted 02 November 2017 - 09:15 AM

What mail server are you bouncing this through?
Was This Post Helpful? 0
  • +
  • -

#5 Eng.madar  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 01-October 17

Re: I want to send Email using asp

Posted 06 November 2017 - 01:02 AM

the mail server i use Office365
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1