By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,705 Members | 2,017 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,705 IT Pros & Developers. It's quick & easy.

What code can my program Email me with if a condition happens?

P: n/a
How can I do this if a certain event happens within my program? Can I
use a hotmail.com account or one of the tribidz.com that comes with my
hosting account? Is there a free way to do it?

Dim email As New System.Web.Mail.MailMessage
email.To = "tr********@hotmail.com"
email.From = "tr*****@tribidz.com"
email.Body = "Message Text"
email.Subject = "Subject Text"
email.BodyFormat = Web.Mail.MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "" '"mail.tribidz.com"
System.Web.Mail.SmtpMail.Send(email)

Thanks,
Trint
..Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
Trint,

You should be using the SMTP server that came with your hosting account (I'm
assuming its tribidz), however, what is with all the quote marks in there?
But otherwise, looks fine to me on the outside.

the reason you can't use Hotmail is because of something called "open-relay"
which is a vulnerability within the mail protocol that has been raped by
spammers.
you can read more about it at

http://mail-abuse.org

-CJ
"Trint Smith" <tr********@hotmail.com> wrote in message
news:#r**************@tk2msftngp13.phx.gbl...
How can I do this if a certain event happens within my program? Can I
use a hotmail.com account or one of the tribidz.com that comes with my
hosting account? Is there a free way to do it?

Dim email As New System.Web.Mail.MailMessage
email.To = "tr********@hotmail.com"
email.From = "tr*****@tribidz.com"
email.Body = "Message Text"
email.Subject = "Subject Text"
email.BodyFormat = Web.Mail.MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "" '"mail.tribidz.com"
System.Web.Mail.SmtpMail.Send(email)

Thanks,
Trint
.Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #2

P: n/a
Trint,
My understanding is as long as you give a valid SMTP server for:
System.Web.Mail.SmtpMail.SmtpServer = "" '"mail.tribidz.com"
It will send the email.

Just remember it needs to be the name of the tribidz SMTP server (not POP3
server).

Of course you realize you will need to be on-line.

Hope this helps
Jay

"Trint Smith" <tr********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl... How can I do this if a certain event happens within my program? Can I
use a hotmail.com account or one of the tribidz.com that comes with my
hosting account? Is there a free way to do it?

Dim email As New System.Web.Mail.MailMessage
email.To = "tr********@hotmail.com"
email.From = "tr*****@tribidz.com"
email.Body = "Message Text"
email.Subject = "Subject Text"
email.BodyFormat = Web.Mail.MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "" '"mail.tribidz.com"
System.Web.Mail.SmtpMail.Send(email)

Thanks,
Trint
Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #3

P: n/a
you cannot send messages e-mails to hotmail accounts this way. By the way,
the se3rver should be the one for the to address. Hotmail has a new security
feature thats wwhy.

"Trint Smith" <tr********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
How can I do this if a certain event happens within my program? Can I
use a hotmail.com account or one of the tribidz.com that comes with my
hosting account? Is there a free way to do it?

Dim email As New System.Web.Mail.MailMessage
email.To = "tr********@hotmail.com"
email.From = "tr*****@tribidz.com"
email.Body = "Message Text"
email.Subject = "Subject Text"
email.BodyFormat = Web.Mail.MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "" '"mail.tribidz.com"
System.Web.Mail.SmtpMail.Send(email)

Thanks,
Trint
Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 20 '05 #4

P: n/a
Chris,
I'm able to use Trint's code and send to a hotmail account, as long as the
From address matched the smtp server's "address".

What appears to be blocked is if you attempt to say you are to a hotmail
account & from a "hotmail" account. Which is understandable.

Hope this helps
Jay

"Chris Barrell" <ch***********@bigpond.com> wrote in message
news:eA*************@TK2MSFTNGP12.phx.gbl...
you cannot send messages e-mails to hotmail accounts this way. By the way,
the se3rver should be the one for the to address. Hotmail has a new security feature thats wwhy.

"Trint Smith" <tr********@hotmail.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
How can I do this if a certain event happens within my program? Can I
use a hotmail.com account or one of the tribidz.com that comes with my
hosting account? Is there a free way to do it?

Dim email As New System.Web.Mail.MailMessage
email.To = "tr********@hotmail.com"
email.From = "tr*****@tribidz.com"
email.Body = "Message Text"
email.Subject = "Subject Text"
email.BodyFormat = Web.Mail.MailFormat.Html
System.Web.Mail.SmtpMail.SmtpServer = "" '"mail.tribidz.com"
System.Web.Mail.SmtpMail.Send(email)

Thanks,
Trint
Net programmer
tr********@hotmail.com

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!


Nov 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.