468,458 Members | 1,813 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 468,458 developers. It's quick & easy.

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

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
4 1276
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
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
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
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.

Similar topics

12 posts views Thread by Steven T. Hatton | last post: by
51 posts views Thread by jacob navia | last post: by
37 posts views Thread by deepu | last post: by
669 posts views Thread by Xah Lee | last post: by
4 posts views Thread by Gestorm | last post: by
reply views Thread by NPC403 | last post: by
reply views Thread by kmladenovski | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.