PC Review


Reply
Thread Tools Rate Thread

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

 
 
Trint Smith
Guest
Posts: n/a
 
      29th Feb 2004
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 = "(E-Mail Removed)"
email.From = "(E-Mail Removed)"
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
(E-Mail Removed)

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
 
CJ Taylor
Guest
Posts: n/a
 
      29th Feb 2004
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" <(E-Mail Removed)> wrote in message
news:#rQ0kZv$(E-Mail Removed)...
> 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 = "(E-Mail Removed)"
> email.From = "(E-Mail Removed)"
> 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
> (E-Mail Removed)
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      29th Feb 2004
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" <(E-Mail Removed)> wrote in message
news:%23rQ0kZv$(E-Mail Removed)...
> 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 = "(E-Mail Removed)"
> email.From = "(E-Mail Removed)"
> 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
> (E-Mail Removed)
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Chris Barrell
Guest
Posts: n/a
 
      1st Mar 2004
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" <(E-Mail Removed)> wrote in message
news:%23rQ0kZv$(E-Mail Removed)...
> 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 = "(E-Mail Removed)"
> email.From = "(E-Mail Removed)"
> 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
> (E-Mail Removed)
>
> *** Sent via Developersdex http://www.developersdex.com ***
> Don't just participate in USENET...get rewarded for it!



 
Reply With Quote
 
Jay B. Harlow [MVP - Outlook]
Guest
Posts: n/a
 
      1st Mar 2004
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" <(E-Mail Removed)> wrote in message
news:eABDS72$(E-Mail Removed)...
> 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" <(E-Mail Removed)> wrote in message
> news:%23rQ0kZv$(E-Mail Removed)...
> > 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 = "(E-Mail Removed)"
> > email.From = "(E-Mail Removed)"
> > 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
> > (E-Mail Removed)
> >
> > *** Sent via Developersdex http://www.developersdex.com ***
> > Don't just participate in USENET...get rewarded for it!

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Code condition LiAD Microsoft Excel Programming 3 8th Dec 2009 10:45 AM
code to check condition for each row Horatio J. Bilge, Jr. Microsoft Excel Misc 3 10th Feb 2009 08:07 PM
Condition not equal code..Help!!! g Microsoft Access VBA Modules 1 28th Aug 2008 11:26 AM
Re: Condition Formatting in code. How? raypayette Microsoft Excel Programming 1 11th Aug 2006 02:55 PM
Code not working, to get condition value =?Utf-8?B?SXJzaGFkIEFsYW0=?= Microsoft Access Form Coding 2 26th Oct 2005 10:29 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:15 PM.