473,396 Members | 1,933 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

e-mail not going to "inbox" rather going to the "Junk Mail" box

i have facility in my website which sends an e-mail to the cleint's
inbox..... i am getting a problem when ever i sends an e-mail.. i tried with
Hotmail and Yahoo, e-mail goes to the "Junk Mail" folder not the actual
inbox....

how i can get e-mail sent the clients inbox not in their "Bulk" or "Junk
Mail" box
thanks

my send e-mail page C# codes are below:
Server.ScriptTimeout = 1000;

SmtpMail.SmtpServer = "127.0.0.1";
MailMessage mail = new MailMessage();
mail.To = this.TextBox2.Text;
mail.From = this.TextBox4.Text;
mail.Subject = this.TextBox1.Text + " recommends this eOman.gov.om page";
mail.BodyFormat = MailFormat.Html;

string strBody = this.TextBox1.Text + "<html><body>My Message text starts
from here" +
" <br><br><font color=\"black\"><a href='" + this.TextBox3.Text + "'>" +
this.TextBox3.Text + "</a></font>" +
" <br><br><font color=\"black\"><hr></font>" +
" <br><font color=\"black\">My Message ends here.</font></body></html>";

mail.Body = strBody;

try
{
SmtpMail.Send(mail);
Label4.Text="The e-mail has been sent to: "+ mail.To;
}
catch(System.Exception ex)
{
Response.Write(ex.Message);
}
Mar 15 '08 #1
1 3034
This is entirely up to the recipient's ISP, which thinks you are a spammer.
Are you a spammer?


"TalalSaleem" <Ta*********@discussions.microsoft.comwrote in message
news:F4**********************************@microsof t.com...
>i have facility in my website which sends an e-mail to the cleint's
inbox..... i am getting a problem when ever i sends an e-mail.. i tried
with
Hotmail and Yahoo, e-mail goes to the "Junk Mail" folder not the actual
inbox....

how i can get e-mail sent the clients inbox not in their "Bulk" or "Junk
Mail" box
thanks

my send e-mail page C# codes are below:
Server.ScriptTimeout = 1000;

SmtpMail.SmtpServer = "127.0.0.1";
MailMessage mail = new MailMessage();
mail.To = this.TextBox2.Text;
mail.From = this.TextBox4.Text;
mail.Subject = this.TextBox1.Text + " recommends this eOman.gov.om page";
mail.BodyFormat = MailFormat.Html;

string strBody = this.TextBox1.Text + "<html><body>My Message text starts
from here" +
" <br><br><font color=\"black\"><a href='" + this.TextBox3.Text + "'>" +
this.TextBox3.Text + "</a></font>" +
" <br><br><font color=\"black\"><hr></font>" +
" <br><font color=\"black\">My Message ends here.</font></body></html>";

mail.Body = strBody;

try
{
SmtpMail.Send(mail);
Label4.Text="The e-mail has been sent to: "+ mail.To;
}
catch(System.Exception ex)
{
Response.Write(ex.Message);
}

Mar 15 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Tim M | last post by:
Hi Does anyone know if its possible to create and email HTML forms. Email recipients would then input information to these forms in the same way that they would on a web page. Pressing the...
117
by: Steevo | last post by:
Any suggestions as to the best programs for cloaking email addresses? Many thanks -- Steevo
24
by: Arno R | last post by:
Hi all, I have a client with several shoe-shops. Customers can leave their email-address if they want to be notified when there is a sale. Input is validated with instr() I am checking for @...
3
by: Siv | last post by:
Hi, A little while ago I wrote a small program that allowed the user to view products from a database. The database holds the details of the products which can be viewed via a form and...
8
by: Liam.M | last post by:
Hey guys.... I need to find a way to loop through all of my records in the database ( so essentially query the database) based on a Date Field ("DueDate") and if any record falls within 2 months...
0
by: James | last post by:
Using XML and the HttpWebRequest object, I'm easily able to authenticate an exchange user behind the scenes and retrieve a list of emails and the corresponding fields. For whatever sets of...
9
by: rvj | last post by:
Ive come a cross another issue when trying to convert CDO VB to JS The basic send generated the SendUsing configuration is invalid which I understand means I have to specify the smpt server...
2
by: Torsten Bronger | last post by:
Hallöchen! I thought that with the following code snippet, I could generate a MIME email stub: #!/usr/bin/env python # -*- coding: utf-8 -*- from email.MIMEText import MIMEText from...
1
by: akuva | last post by:
I have to send more than 100s of email using a php code if i use mail function whether it will be sent to spam or inbox. If it is sent to spam which is the other way to send mass email from php. i...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.