User not logged in - login - register
Home Calendar Books School Tool Photo Gallery Message Boards Users Statistics Advertise Site Info
go to bottom | |
 Message Boards » » sending email from .asp page with VB... Page [1]  
ScHpEnXeL
Suspended
32613 Posts
user info
edit post

Basically, this page is used to send timesheets to the human resources woman at work. The problem is it has randomly quit working and I can't figure out why--nothing has changed recently.

The code is as follows: "obj.Mail.To" goes to the HR woman, obviously I omited her address so none of you guys decides to get crazy. "BCCReceivers" goes to me and all other variables are defined and are pretty obvious what they are.

Any ideas?!?! This has worked fine for over two years and randomly quit working...

set objMail = Server.CreateObject("CDONTS.NewMail")
objMail.From = SubmittedBy
objMail.To = "omitted@ourdomain.com"
objMail.BCC = BCCReceivers
objMail.Subject = Subject
objMail.BodyFormat = 0
objMail.MailFormat = 0
objMail.Importance = 2
objMail.Body = EmailMessage
objMail.AttachFile "c:\inetpub\wwwroot\iftworldwide\images\ift_worldwide_header.gif", "ift_worldwide.gif", 1
objMail.Send()
set objMail = nothing

9/12/2005 9:40:58 PM

ZeroDegrez
All American
3897 Posts
user info
edit post

Where are you setting the SMTP server for the mail to be sent with?

9/13/2005 8:19:06 AM

DirtyGreek
All American
29309 Posts
user info
edit post

I remember working on a setup like this, and there was some dll that had to be registered on the server. sometimes, for no real reason, you'd have to re-register it. Google for that

9/13/2005 9:04:55 AM

ScHpEnXeL
Suspended
32613 Posts
user info
edit post

I'll look into both of those, and it was originally setup to use the smtp server that our ISDN provider let me use...then we switched to roadrunner and it kept working anyways. I should probably change it to use the new smpt server...d'oh

9/13/2005 9:06:53 AM

 Message Boards » Tech Talk » sending email from .asp page with VB... Page [1]  
go to top | |
Admin Options : move topic | lock topic

© 2024 by The Wolf Web - All Rights Reserved.
The material located at this site is not endorsed, sponsored or provided by or on behalf of North Carolina State University.
Powered by CrazyWeb v2.39 - our disclaimer.