mail from asp.net1.1
-
Hi all, following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong. what i have to do to send any mail id from any my gmail or company mail id. please can anybody give me some solution.pleaseee Dim objmail objmail = New MailMessage With objmail .To = "abcd@ourcomanydomain.in" .From = "abc@yahoo.co.in" .Cc = "abc@ourcompanydomain.in" .Subject = "My Message" .Body = "HTML Messag" .BodyFormat = MailFormat.Html End With SmtpMail.SmtpServer = "localhost" SmtpMail.Send(objmail)
kissy
-
Hi all, following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong. what i have to do to send any mail id from any my gmail or company mail id. please can anybody give me some solution.pleaseee Dim objmail objmail = New MailMessage With objmail .To = "abcd@ourcomanydomain.in" .From = "abc@yahoo.co.in" .Cc = "abc@ourcompanydomain.in" .Subject = "My Message" .Body = "HTML Messag" .BodyFormat = MailFormat.Html End With SmtpMail.SmtpServer = "localhost" SmtpMail.Send(objmail)
kissy
Once you have sent any mail at all, then you are able to send mail. Any mail that gets lost, is probably getting caught in a spam filter.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
-
Hi all, following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong. what i have to do to send any mail id from any my gmail or company mail id. please can anybody give me some solution.pleaseee Dim objmail objmail = New MailMessage With objmail .To = "abcd@ourcomanydomain.in" .From = "abc@yahoo.co.in" .Cc = "abc@ourcompanydomain.in" .Subject = "My Message" .Body = "HTML Messag" .BodyFormat = MailFormat.Html End With SmtpMail.SmtpServer = "localhost" SmtpMail.Send(objmail)
kissy
Kissy16 wrote:
following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong.
The code is ok and you can do nothing in your code to allow this. You should check your smtp server whether it actually sends the mail outside your company domain or not?
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
Once you have sent any mail at all, then you are able to send mail. Any mail that gets lost, is probably getting caught in a spam filter.
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.
thanks for ur replay.when i can send to my company domain,then how the spam can filter other mails. i am not getting,can u please give me some explanation with some example so that i can apply in my code?/ unsent msgs are queued up in queue folder of inetpub please
kissy
-
Kissy16 wrote:
following code is using to send mail. Problem is,it is reaching only our company domain mail ids not others.like gmail,yahoo etc which is wrong.
The code is ok and you can do nothing in your code to allow this. You should check your smtp server whether it actually sends the mail outside your company domain or not?
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
thanks for ur replay.when i can send to my company domain,then how the spam can filter other mails. i am not getting,can u please give me some explanation with some example so that i can apply in my code?/ unsent msgs are queued up in queue folder of inetpub please
kissy
This is probably an SMTP relaying issue which goes beyond the scope of ASP.Net Talk to your network administrator and tell him that your server needs to be permitted to relay messages.
Manas Bhardwaj Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
-
thanks for ur reply. how to check this?what i have to at smtp end? coz i hae keep it on hosting server.accordign that can u give me some idea??? please
kissy
Talk to your network admin. If mail is only running to your internal address, then the mail server needs to be configured to allow outside mail. Or you should use a different server
Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.