Rubbish mail

hi guys!
I'am a beginner in C#
I creat a e-mail sender ,but,the pop3 server think the mail is rubbish :(
what happen
thanks!


Answer this question

Rubbish mail

  • Paz 9000

    I can not see anything wrong with the way you are building the mail, so it is more then likley the data that you are inputing to send triggering the anti spam systems on the pop server.

    Try changing the data that you are sending and see what happens. Make sure you are using real email addresses and that the email content is not like mose spam mesages.



  • JustJF

    This could depend on a lot of things... One main one might be the subject or email address youare using for the email as your sever might be picking it up as spam...

    Another problem could be on the methods that you are using for the sending of the mail... You could be forming bad headers for the email and the pop server can not read the email.. If you have a small example of the email code post it so that we can see how you are doing it, and maybe fix the problem.



  • Dekagon

    thank Glenn Wilson

    this is my source .
    Glenn Wilson
    private void btnsend_Click(object sender, System.EventArgs e)
    {
    System.Web.Mail.MailMessage message=new MailMessage();
    message.From=this.tbsender.Text ;
    message.To =this.tbreceiver .Text;
    message.Subject =this.tbtheme .Text;
    message.Body =this.tbstraightmatter .Text;
    System.Web .Mail .MailAttachment attachment =new MailAttachment(this.tbannex.Text );
    try
    {
    SmtpMail.Send(message);
    }
    catch(Exception err)
    {
    MessageBox.Show (err.Message );
    }


    }


  • Ken_L

    thank you for you help
    I'll test again!

  • Rubbish mail