ASPmail help (Full Version)

All Forums >> [Web Development] >> ASP and Database



Message


Sandalwood -> ASPmail help (3/4/2005 16:36:07)

I am having trouble setting up ASPemail for a client. I have used CDONTS in the past, but my current host, Earthlink, does not support this.

I am on the site, aspemail.com and kind of confused. Do I have to download something to my machine, even when it is for a client?




Spooky -> RE: ASPmail help (3/4/2005 18:07:22)

No, just check the manual there for some test scripts

eg : http://www.aspemail.com/manual_02.html

The basic script is :

    Set Mail = Server.CreateObject("Persits.MailSender")
   Mail.Host = strHost
   Mail.From = Request("From") ' From address
   Mail.FromName = Request("FromName") ' optional
   Mail.AddAddress Request("To")
   Mail.Subject = Request("Subject")
   Mail.Body = Request("Body")
   strErr = ""
   bSuccess = False
   On Error Resume Next ' catch errors
   Mail.Send ' send message
    If Err <> 0 Then ' error occurred
      strErr = Err.Description
   else
      bSuccess = True
   End If




dzirkelb1 -> RE: ASPmail help (3/7/2005 11:05:42)

aspemail uses a .dll file which has to be on the host machine which is running the script just like cdonts does. So, if the machine hosting the site doesnt have the .dll, then it probably won't work.




Sandalwood -> RE: ASPmail help (3/7/2005 11:07:22)

I get this error message:

Server object error 'ASP 0177 : 800401f3'

Server.CreateObject Failed

/test.asp, line 2

Invalid ProgID. For additional information specific to this message please visit the Microsoft Online Support site located at: http://www.microsoft.com/contentredirect.asp.




Here is my code:

<%
Set Mail = Server.CreateObject("Persits.MailSender")
Mail.Host = adminpanels.com
Mail.From = "info@adminpanels.com"
Mail.FromName = "Info"
Mail.AddAddress = "info@adminpanels.com"
Mail.Subject = "test"
Mail.Body ="Body"
strErr = ""
bSuccess = False
On Error Resume Next ' catch errors
Mail.Send ' send message
If Err <> 0 Then ' error occurred
strErr = Err.Description
else
bSuccess = True
End If
%>

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>

<body>

<p>test</p>

</body>

</html>




dzirkelb1 -> RE: ASPmail help (3/7/2005 11:20:38)

I'm pretty sure that means it can't find the .dll file included in the download for the aspemail which has to be on the machine running the script.




paulie -> RE: ASPmail help (3/7/2005 11:20:41)

quote:

Mail.Host = adminpanels.com


This needs to be the address or IP of your mail server, like

mail.adminpanels.com or xxx.xxx.xxx.xxx

HTH,
Paul




dzirkelb1 -> RE: ASPmail help (3/7/2005 11:21:22)

ya, that too :)




Sandalwood -> RE: ASPmail help (3/7/2005 11:53:48)

My host, Earthlink, sent me this link when I asked for the mail server:

http://dnsstuff.com/tools/lookup.ch?name=adminpanels.com&type=MX

They said to use adminpanels.com in the code, but I didn't believe it either. Does this link tell me anything?




dzirkelb1 -> RE: ASPmail help (3/7/2005 12:58:34)

I'd try dns1.earthlink.net or variations of those




Sandalwood -> RE: ASPmail help (3/7/2005 13:20:07)

Operation keeps timing out?




dzirkelb1 -> RE: ASPmail help (3/7/2005 14:00:35)

Its probably something they have there...maybe its mx01-dom.earthlink.net

Also, try smtpauth.earthlink.net




Sandalwood -> RE: ASPmail help (3/7/2005 14:04:33)

Mail send failure. Error was [11001] Host not found



AAAAAAArrrrrrrrrgh![:@]




Spooky -> RE: ASPmail help (3/7/2005 19:55:44)

The first error would suggest that they dont support that component.




Sandalwood -> RE: ASPmail help (3/8/2005 9:15:34)

Their (Earthlink's) tech support told me they don't support CDONTS, and sent me this link:
http://www.serverobjects.com/comp/Aspmail4.htm

Is there a script to test if this component is installed or running or is there another option?




paulie -> RE: ASPmail help (3/8/2005 9:25:23)

Oh, your host supports ASPMail, and we've been giving you support for ASPEmail, a different script altogether.

You should be fine if you disregard everything we've advised and just follow the directions for ASPMail.

I found a script once that would show you every mail component installed on a given server. Let me see if I can find that...

<edit>
Here's one:
http://www.planet-source-code.com/vb/scripts/ShowCode.asp?txtCodeId=8976&lngWId=4
</edit>

HTH,
Paul




Sandalwood -> RE: ASPmail help (3/8/2005 10:23:09)

Here are the results:

http://www.adminpanels.com/componet_test.asp




paulie -> RE: ASPmail help (3/8/2005 10:30:23)

quote:

SMTPsvg.Mailer


So that confirms that they support ASPMail, but not Persits ASPEmail.
I would try the sample script on the link they sent that you posted above. Should work, and if it doesn't, they (Earthlink tech support) should be able to tell you why not.

BTW, that component checker lists every component on the server, not just mail script handlers. That was a little more info than you needed - sorry about that.




Sandalwood -> RE: ASPmail help (3/8/2005 12:38:42)

OK, I got this script (below) and it seems that SMTPsvg.Mailer appears on the list. However, still getting an Operation Timed Out error. Earthlink support says they do not provide support for scripting errors. What a quandary![:(]

<%
Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.FromName = "Joe’s Widgets Corp."
Mailer.FromAddress= "info@adminpanels.com"
Mailer.RemoteHost = "mx01-dom.earthlink.net"
Mailer.AddRecipient "John Smith", "info@adminpanels.com"
Mailer.Subject = "Great SMTP Product!"
Mailer.BodyText = "Dear Stephen" & VbCrLf & "Your widgets order has been processed!"
if Mailer.SendMail then
Response.Write "Mail sent..."
else
Response.Write "Mail send failure. Error was " & Mailer.Response
end if
%>

<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>
</head>

<body>

<p>test</p>

</body>

</html>




paulie -> RE: ASPmail help (3/8/2005 12:56:18)

quote:

Earthlink support says they do not provide support for scripting errors


That's what you get without a dedicated hosting provider. It's tempting to save a few $ by using the space that comes with your ISP connection, but when you need more than just static .htm pages, it isn't worth the money you save.

In their defense though, mosts hosts don't support scripting errors once they've hooked you up with the components available. They tend to assume you know what you're doing (boy have I proved them wrong!) The good news is that you can almost always find an answer here or elsewhere on the Internet.

I don't have experience with this particular email script, but I would say that it is probably timing out because it can't find the mail server to send from. Try a few different values for the remotehost.

<edit>
Just a thought, but this line puzzles me:

if Mailer.SendMail then...

Is this a true condition? If not, it will never send.
</edit>





rdouglass -> RE: ASPmail help (3/8/2005 13:14:18)

quote:

Mailer.BodyText = "Dear Stephen" & VbCrLf & "Your widgets order has been processed!"


Just one quick thing I'd try is taking the VbCrLf out and trying to replace it with ASCII equivalent:

Mailer.BodyText = "Dear Stephen" & CHR(010) & CHR(013) & "Your widgets order has been processed!"

Also, without knowing the engine it's hard to tell. However, I too would be suspect of the conditional statement. Try remarking out the IF...THEN statement to see if it'll send anything then.

</$.02>




rdouglass -> RE: ASPmail help (3/8/2005 13:17:09)

quote:

Mailer.FromAddress= "info@adminpanels.com"
Mailer.RemoteHost = "mx01-dom.earthlink.net"


Another thing that may be an issue; is info@adminpanels.com a user on earthlink? Many mail hosts don't allow sending/relaying unless they're "local users" - SPAM prevention and all that.

Just more $.02 - hope it helps.




Sandalwood -> RE: ASPmail help (3/8/2005 13:31:57)

You're so right, Paulie! Unfortunately, this is a client's site and I didn't have a vote in who does their hosting.

rdouglass, the script is no longer timing out... but it's not sending, either. Perhaps the mail host is incorrect. Can anyone tell me anything from this:
http://dnsstuff.com/tools/lookup.ch?name=adminpanels.com&type=MX





rdouglass -> RE: ASPmail help (3/8/2005 13:50:48)

quote:

rdouglass, the script is no longer timing out... but it's not sending, either.


Have you tried any of my other suggestions?




Sandalwood -> RE: ASPmail help (3/8/2005 15:05:28)

adminpanels.com is hosted by Earthlink, and info@adminpanels.com was created in the Earthlink control panel. If Earthlink isn't my ISP, though, I won't be able to get an "@earthlink.net" email address, would I?




rdouglass -> RE: ASPmail help (3/8/2005 15:22:27)

I may be way off base with a fix but I do know for sure that many email hosts will not relay mail for any address not in their local domain. So no, in fact they may NOT allow that email address to relay. When you're using a server mail package, AFAIK you are indeed relaying and not a "client".

That by all means doesn't mean EarthLink is like that.

For instance, my mail server refuses any emails not sent from an address ending with (at)clarkinsurance(dot)com reguardless if they're from a client or server. Just thinking that would be a very quick and easy check - try replacing that adminpanels thing with your earthlink email address.

Hey its a very quick check.




dzirkelb1 -> RE: ASPmail help (3/8/2005 15:27:05)

especially with earthlink and their spam policies...prolly the same with aol; however, hotmail works on cdonts at least :)




Sandalwood -> RE: ASPmail help (3/8/2005 18:17:14)

Since my ISP isn't Earthlink, I don't have an Earthlink email. I put in info@earthlink.net to test it out, but no luck yet. I will try using all of the addresses listed here: http://dnsstuff.com/tools/lookup.ch?name=adminpanels.com&type=MX

Not sure what I would do if it wasn't for OutFront's forums!




danrendrag -> RE: ASPmail help (3/8/2005 18:57:24)

Try - Mailer.RemoteHost = "localhost"
or Mailer.RemoteHost = "127.0.0.1"




Sandalwood -> RE: ASPmail help (3/9/2005 13:42:37)

Still nothin'. [:@]




rdouglass -> RE: ASPmail help (3/9/2005 13:54:51)

quote:

Since my ISP isn't Earthlink, I don't have an Earthlink email.


As just another test (since it looks like we're running out of options [:'(]) try putting in YOUR ISP info and your email address for the From address and mail host. If you're using your legit account, it may work.

Again, just another guess but what have you to lose; another 20 minutes? Hope it helps.




Page: [1] 2   next >   >>

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.09375