Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
February 09, 2012, 07:40:59 PM

Pages: [1]   Go Down
  Print  
Author Topic: VBScript that emails to a non-LunarPages address  (Read 1685 times)
Comet Software
Spacescooter Operator
*****
Offline Offline

Posts: 33


« on: May 03, 2010, 03:35:13 PM »

My question has been asked by others multiple times in other forums, but, a final answer has not been posted.  And, those forums have so little activity, hopefully enough eyes will see this and provide a definitive answer.  First, the basics:

Windows shared hosting
VBScript file not associated with an ASP file
Plesk Scheduler runs the script as a Task
script sends email via CDOSYS

I found a fairly standardized VBScript using CDOSYS (multiple sites - same basic code that works - here is an example: http://www.lunarforums.com/asp_support/solution_to_using_form_to_send_email_from_asp_page_using_cdosys-t44402.0.html).  I can get it to work when launched from my DSL-connected PC in which my ISP authenticates and I can have it send an email address "to" or "from" any server (i.e. yahoo.com, bellsouth.net).

I have also gotten it to work when launched as a Plesk Scheduler Task in which i use "localhost", but, the "to" address has to be within my domain (i.e. CANNOT be yahoo.com, bellsouth.net), otherwise I get a "551 not our customer" error.  If I try to run the task in which the script tries to authenticate through my domain's email server, the task fails with such severity that I don't even receive "The Plesk Scheduler notification" email.  If I try to run the task in which the script tries to authenticate through my ISP's email server, I get a "transport failed to connect to the server" error.

Is there a way that a VBScript run as a Plesk Scheduler Task can send an email to different (non-LunarPages) domain email address?  Or, is this an issue in which LunarPages does not allow this to happen?
Logged
DanielM
Guest
« Reply #1 on: May 04, 2010, 06:52:39 AM »

Hi thar  Hiya

Unfortunately i'm not a Windows person so I can't offer too much advise into your issue - I just wanted to let you know that we do indeed monitor the forums and we're glad to  Help whenever necessary.

If a Windows admin doesn't stop by shortly, please feel free to email support@lunarpages.com or submit a ticket to http://support.lunarpages.com . Be sure to include all the details you posted here and include your primary domain or username on your account. We'll be more than happy to take a gander!

Thanks.

EDIT: Have you tried setting the host itself to the server name as opposed to localhost? An example would be blamo.lunarbreeze.com .

Give it a try and let me know how it works. If you're not sure of the server/datacenter combo you can shoot me a PM on here with your plesk username and i'll let you know.
« Last Edit: May 04, 2010, 06:55:29 AM by DanielM » Logged
Comet Software
Spacescooter Operator
*****
Offline Offline

Posts: 33


« Reply #2 on: May 04, 2010, 07:37:56 AM »

Do you mean kraz.lunarpages.com?
Logged
DanielM
Guest
« Reply #3 on: May 04, 2010, 07:54:39 AM »

If you are on the Kraz server that would be it  Thumbs Up
Logged
Comet Software
Spacescooter Operator
*****
Offline Offline

Posts: 33


« Reply #4 on: May 04, 2010, 09:27:14 AM »

That did not work either.  I tried to authenticate with the same username and password that I use when getting into Plesk.  Just as when I try to get through mail.cometsoftware.com, this failed such that I didn't even receive "The Plesk Scheduler notification" email stating that the task was run.  It would be nice if Scheduler still generated that notification when this failure occurs.

DanielM I appreciate your efforts, but, we can make guesses 24/7.  It seems that I can only run tasks once an hour and only one task per hour, and, I have tried/guessed a number of things the past few days.  So, the point of starting this thread was to try and get a definitive answer.  Since this is not an issue isolated to my account/domain, I think it is appropriate to have this presented publicly in a thread instead of handling it privately through tech support.  And, I don't want this thread to end up like all of the others that I found concerning this issue that is filled with lots of guesses and dies without a resolution.
Logged
DanielM
Guest
« Reply #5 on: May 04, 2010, 09:36:35 AM »

Hi,

My reply was not a guess, it was a solution that I have provided before that works. Unfortunately not much direct assistance can be given in the forums due to privacy reasons. If you are still experiencing issues and would like further assistance you need to contact support so we can direct the ticket itself to the staff members that can better assist you. The forum is not equal to the support desk in any way.

Once you are able to get the script functioning correctly with the help of Lunarpages' staff through the help desk you are more than welcome to post your findings back here.

Thanks!
Logged
Comet Software
Spacescooter Operator
*****
Offline Offline

Posts: 33


« Reply #6 on: May 17, 2010, 03:43:05 PM »

OK, after trying a few things and talking with tech support, I have a few answers but the main issue is still not resolved.

First, what I have figured out:  The reason why I was not receiving "The Plesk Scheduler notification" email was because I set the "Scheduler notification" to "Send to the default email", which doesn't seem to work.  When I selected "Send to the e-mail I specify", then, I receive the email even with fatal errors in the script or the task parameters.  ***edited for clarification***  This notification email issue was and is totally different from the script, which also sends out an email.  The rest of this post deals with the script and the email that it sends.

Now, for the script which sends out an email, I have tried using "localhost" to send to my Yahoo email account and having my cometsoftware.com email account as the "from" account, and, basically the email disappears to the point that I don't get the email bounced back to my cometsoftware.com account.

Basically, the way that Lunarpages is constructing the email header when I use "localhost" is such that Yahoo thinks it is spam.  I am working with Lunarpages to try to get a copy of that email so that I can contact Yahoo and see what they want to see or not see in the header.  But, otherwise I don't know what to put into the email header to de-spam it.  I believe that this is an email header issue, that is, what is in the header, as opposed to a Windows hosting or VBScript error.  VBScript CDO seems to provide me with all of the header options that I need.

The frustrating thing about this is that, as referenced in the OP, this problem has been brought forward before, but, there doesn't seem to be an answer.  None of the forum threads presents a solution, with some of them suggesting contacting tech support.  I don't think that those threads have specifically mentioned Yahoo as the problem ISP, so, I don't believe that this issue is limited to Yahoo.  I have contacted tech support and gone back and forth with them, and, they don't know what the solution is - other than to contact Yahoo.  It is mindboggling to me that over the years, nobody at Lunarpages and/or in these forums has come up with a solution.

*** edited for clarification***  In a totally unrelated project, within my domain I have a "Contact us" web page that uses a PHP file (and the "mail" function) to generate that email to me, as well as a confirmation email to my "customer".  This works fine and when I test it, I receive emails at my Yahoo account, as well the situation of having the "customer" confirmation email sent to a Yahoo account.  This proves that a domain (specifically mine) within Lunarpages can have a PHP script that sends an email that Yahoo accepts as not spam.  But, this thread is asking how to be able to do that with VBScript and CDO.  So, how is the PHP "mail" function different from the VBScript CDO such that Yahoo accepts the PHP version but not the VBScript CDO version?
« Last Edit: May 18, 2010, 08:48:58 AM by Comet Software » Logged
Pages: [1]   Go Up
  Print  
 
Jump to: