472,990 Members | 3,567 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

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 1352
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Steven T. Hatton | last post by:
This is something I've been looking at because it is central to a currently broken part of the KDevelop new application wizard. I'm not complaining about it being broken, It's a CVS images. ...
51
by: jacob navia | last post by:
I would like to add at the beginning of the C tutorial I am writing a short blurb about what "types" are. I came up with the following text. Please can you comment? Did I miss something? Is...
126
by: ramyach | last post by:
Hi friends, I need to write a parallel code in 'C' on the server that is running SGI Irix 6.5. This server supports MIPS Pro C compiler. I don't have any idea of parallel C languages. I looked...
37
by: deepu | last post by:
Please reply...
669
by: Xah Lee | last post by:
in March, i posted a essay “What is Expressiveness in a Computer Language”, archived at: http://xahlee.org/perl-python/what_is_expresiveness.html I was informed then that there is a academic...
2
by: SharpCoderMP | last post by:
I'm having troubles with uploading files to the ftp server using FtpWebRequest. I occasionally get an Exception saying: "The underlying connection was closed: An unexpected error occurred on a...
4
by: sevenever | last post by:
It seems leads to memory leaking on windows + VC. The delete will not free the memory in such condition?
28
by: gnuist006 | last post by:
I have some code like this: (if (test) (exit) (do something)) or (if (test)
4
by: Gestorm | last post by:
Hi all, I found a macro "USE_VAR" in the code of bash-3.2 as follows: /*file: bash-3.2/shell.c*/ 344 USE_VAR(argc); 345 USE_VAR(argv); 346 USE_VAR(env); 347 USE_VAR(code); 348 ...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
2
by: giovanniandrean | last post by:
The energy model is structured as follows and uses excel sheets to give input data: 1-Utility.py contains all the functions needed to calculate the variables and other minor things (mentions...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...
3
SueHopson
by: SueHopson | last post by:
Hi All, I'm trying to create a single code (run off a button that calls the Private Sub) for our parts list report that will allow the user to filter by either/both PartVendor and PartType. On...

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.