msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Log file be sent

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise
Author Message
Teddy



Joined: 04 Oct 2007
Posts: 5

PostPosted: Tue Oct 24, 2006 6:01 am    Post subject: Log file be sent Reply with quote

Hello, is there some way to let a log file created, be sent to a
certain email address each time it's created??

Archived from group: microsoft>public>vb>enterprise
Back to top
View user's profile Send private message
Ken Halter



Joined: 04 Oct 2007
Posts: 4150

PostPosted: Tue Oct 24, 2006 12:35 pm    Post subject: Re: Log file be sent Reply with quote

"Teddy" wrote in message @e3g2000cwe.googlegroups.com...
> Hello, is there some way to let a log file created, be sent to a
> certain email address each time it's created??

Are you creating the logfile?... actually, you need to be more specific with
the questions... but, in general, you can generate a log and send it
anywhere you want.

--
Ken Halter - Please keep all discussions in the groups..
In Loving Memory - http://www.vbsight.com/Remembrance.htm
Back to top
View user's profile Send private message
Ted



Joined: 04 Oct 2007
Posts: 4

PostPosted: Tue Oct 24, 2006 2:05 pm    Post subject: Re: Log file be sent Reply with quote

Well, I made a program that would create a log file when it meets a
certain size, I just need it to be sent to a certain email, how can I
achieve that?
Thank you
Back to top
View user's profile Send private message
Andrew D. Newbould



Joined: 04 Oct 2007
Posts: 11

PostPosted: Wed Oct 25, 2006 1:25 am    Post subject: Re: Log file be sent Reply with quote

In message , Ted
writes
>Well, I made a program that would create a log file when it meets a
>certain size, I just need it to be sent to a certain email, how can I
>achieve that?
>Thank you
>

Use CDOSYS objects (CDO For Windows 2000) to define an email and attach
the log file to it. You will obviously need to provide some parameters
in your application to configure the appropriate SMTP server to use (not
safe hard coding it).

Kind Regards,
--
Andrew D. Newbould E-Mail: NO-usenet-SPAM@zadsoft.com

ZAD Software Systems Web : www.zadsoft.com
Back to top
View user's profile Send private message
Murtuza



Joined: 04 Oct 2007
Posts: 8

PostPosted: Wed Oct 25, 2006 5:54 am    Post subject: Re: Log file be sent Reply with quote

Teddy wrote:

> Hello, is there some way to let a log file created, be sent to a
> certain email address each time it's created??

There are a lot of code snippet and ready to use modules available to
send an SMTP mail from any internet connected machine.

However it may not work due to many reasons such as user may not be
connected to the internet directly, instead may be using a proxy or
something. Port access may have been disabled by the firewall and many
such things may restrict you from mailing. On the controry, you should
ask the user to mail the file when you need it so it is on the user to
decide how to mail the file.

If you are still interested in getting the file by mail, request me
for the code snippet and i will provide you code to send a file using
SMTP protocol to your mailbox.
Back to top
View user's profile Send private message
Ted



Joined: 04 Oct 2007
Posts: 4

PostPosted: Wed Oct 25, 2006 7:08 am    Post subject: Re: Log file be sent Reply with quote

Murtuza wrote:
> Teddy wrote:
>
> > Hello, is there some way to let a log file created, be sent to a
> > certain email address each time it's created??
>
> There are a lot of code snippet and ready to use modules available to
> send an SMTP mail from any internet connected machine.
>
> However it may not work due to many reasons such as user may not be
> connected to the internet directly, instead may be using a proxy or
> something. Port access may have been disabled by the firewall and many
> such things may restrict you from mailing. On the controry, you should
> ask the user to mail the file when you need it so it is on the user to
> decide how to mail the file.
>
> If you are still interested in getting the file by mail, request me
> for the code snippet and i will provide you code to send a file using
> SMTP protocol to your mailbox.

Ok, thanks, you can send me the code snippet...
Back to top
View user's profile Send private message
Ted



Joined: 04 Oct 2007
Posts: 4

PostPosted: Wed Oct 25, 2006 7:05 pm    Post subject: Re: Log file be sent Reply with quote

Any other help? anyone can send me this snippet please?

Thanks

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Enterprise All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group