Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASPUpload and/or ASPEmail - Domain Name Required -Why? F1 please 1

Status
Not open for further replies.

Deadline

Programmer
Feb 28, 2001
367
US
Hi... I am using ASPUpload and ASPEmail components to accept three files from the form and send them as email to me. I get the error like "Domain Name Required" when I attempt to send that Mail.


Can you help me out of this ? Thank you...
RR

 
Is the error coming from the upload or the email portion of your application?
I'm assuming the email portion, and if that's so, what are you using for to and from email addresses? Are you including the domain name portion of the email address?
 
Hi...

The error occurs at the Mail.Send function call.

Code:
Mail.From = fn
Mail.FromName = email
Mail.Host = "mail.gcol.com"
Mail.Subject = "Documents and details for -" &tf
Mail.IsHTML = True
Mail.Body = &quot;<HTML><BODY><CENTER>&quot; & mailbody & &quot;</CENTER></BODY></HTML>&quot;
Mail.AddAddress &quot;my@mycompany.com&quot;,&quot;Manager&quot;
' Handle attached file via Upload.Files collection.
' Check if a file was indeed uploaded
 If Not Upload.Files(&quot;Attachment1&quot;) Is Nothing Then
	Mail.AddAttachment Upload.Files(&quot;Attachment1&quot;).Path
 End If
 
 If Not Upload.Files(&quot;Attachment2&quot;) Is Nothing Then
	Mail.AddAttachment Upload.Files(&quot;Attachment2&quot;).Path
 End If 
 
 If Not Upload.Files(&quot;Attachment3&quot;) Is Nothing Then
	Mail.AddAttachment Upload.Files(&quot;Attachment3&quot;).Path
 End If

 ' We are done. Send message
 Mail.Send ' <<<<<<<<<Error Occurs here....

Can you help me please?? Thank you...
RR

 
i think

Mail.From = fn

needs to be

Mail.From = fn@yourcompany.com
 
oops. :~/

unless fn is a variable that has a valid email address in it, and the same with email, is that a variable with someone's name? or have you swapped the two variables - fn and email?

because Mail.From needs to be a valid email address and Mail.FromName can be any text, intended to be the sender's name.

 
okay, before i leave, if fn and email are variables, you might want to do a response.write of them just before your error occurs, to see what their values are. perhaps they aren't getting loaded with the right data, or anything at all.
 
LobStah

Thank you very much. I figured out the problem, but not a way out of it. I am developing in a Windows 2000 machine locally. This machine already has PWS. I am developing in this machine.

My requirement is to send mails out of this system...I mean, while development. We also have a NT Server, which is the company's gateway. All mails go through and come out of this NT Server. I would like to know is there anyway I can route the mail that my .ASP page generates to that NT Server ?? I am using my Yahoo! Mail for testing purposes.

How to configure this Windows 2000 machine to use the NT Server machine's mail server(SMTP) ? Many Thanks Yet again. Thank you...
RR

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top