Author |
Topic |
|
johnhardy
Starting Member
United Kingdom
46 Posts |
Posted - November 17 2009 : 17:51:29
|
Hello I am using page http://localhost/articlenowvpasp/diag_dbtest.asp where I Test Email I enter my email address and press test Mail This is the result
Mailing using CDONTS FAIL - CDONTS is probably not installed on this system. Mailing using CDOSYS PASS! Mailing using DUNDAS FAIL - DUNDAS is probably not installed on this system. Mailing using ASPEMAIL FAIL - ASPEMAIL is probably not installed on this system. Mailing using ASPMAIL FAIL - ASPMAIL is probably not installed on this system. Mailing using JMAIL PASS! Mailing using JMAIL43 PASS! Mailing using OCXMAIL FAIL - OCXMAIL is probably not installed on this system. Mailing using SOFTART FAIL - SOFTART is probably not installed on this system. However the email does not arrive. Any ideas why Thanks John |
|
creativechaos
VP-CART New User
Australia
64 Posts |
Posted - November 17 2009 : 20:32:37
|
Hi John,
From the looks of the mail components that your server passes on, it is highly likely that your server requires SMTP authentication to be set up for email to work.
The diag_dbtest.asp script will report a success message if the mail component is installed, however it does not check whether the email was actually delivered. If SMTP authentication is required on your server, no email will be delivered and the script will continue to check to see whether the next mailing component exists on your server.
Try adding your email username and password information into the shop$config.asp file which should then allow your server to send the test.
See the following helpnote for more information on resolving mail issues.
http://helpnotes.vpasp.com/shopexd.asp?id=209#209
Cheers,
Michael Dunkley Creative Chaos http://www.creativechaos.com.au |
|
|
johnhardy
Starting Member
United Kingdom
46 Posts |
Posted - November 18 2009 : 05:00:51
|
Thanks Michael
I added the email username and password to shop$config.asp here const xmailusername = "" 'If you are using CDOSYS as your email system it requires a username, enter it here const xmailpassword = "" 'If you are using CDOSYS as your email system it requires a password, enter it here but the emails from diag_dbtest.asp did not arrive. --------------------------------------------------------- I followed the instructions at http://helpnotes.vpasp.com/shopexd.asp?id=209#209
and changed the lines to 'on error resume next 'If getconfig("xdebug")="Yes" then Debugwrite "to=" & my_to & "(" & my_toaddress &") from=" & my_from &"("& my_fromaddress &")" debugwrite "attachments=" & orderattachmentcount debugwrite body 'end if
However when I tried to send the email via diag_dbtest.asp I get the following error Server object, ASP 0177 (0x800401F3) Invalid class string /articlenowvpasp/shopmail.asp, line 34
quote: The article mentions xemailsystem in VP-ASP Shop Configuration
but I cannot find xemailsystem in shop$config.asp
Many emails come through my server to which I have access so I am not clear what is meant by your server requires SMTP authentication to be set up for email to work. Perhaps you could explain
Thanks again John |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - November 18 2009 : 06:31:13
|
if you go into the setup tab in vpasp admin, then do a search on a config option:
%mail%
you'll see most of the relevant options (ie some settings like the userid/pwd are in the shop$config.asp file, other settings are in the database via the site-setup tab)
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
|
|
johnhardy
Starting Member
United Kingdom
46 Posts |
Posted - November 18 2009 : 11:12:46
|
Thanks Simon There was a lot to sort out there and in fact jmail was not selected , so I thought Ah Ah! thats it.
But no sadly I still get the error: Server object, ASP 0177 (0x800401F3) Invalid class string /articlenowvpasp/shopmail.asp, line 34 Any ideas Thanks John |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - November 18 2009 : 19:24:49
|
not sure if this'll fix your particular problem but try this:
Edit the file "shopmail.asp" in a raw text editor such as notepad, and locate the following string: (it will be about 10 lines down)
'my_system=getconfig("xemailsystem")
Delete that line and replace it with:
' BYZ: 04-MAR-2007: Added variable declaration and uncommented setting Dim my_system my_system=getconfig("xemailsystem")
ie it might be that it's simply not picking up the correct "system"
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
|
|
johnhardy
Starting Member
United Kingdom
46 Posts |
Posted - November 24 2009 : 07:09:36
|
Thanks Simon Sorry to be so long in answering.
I changed that line you supplied but still get an error. Server object, ASP 0177 (0x800401F3) Invalid class string /articlenowvpasp/shopmail.asp, line 36
The server does require SMTP authentication can you say where this should be placed? Cheers John |
|
|
johnhardy
Starting Member
United Kingdom
46 Posts |
Posted - November 24 2009 : 07:32:54
|
I renewed shopmail.asp and it worked. In fact now I am getting three notification emails for one submission! Wonder why? |
|
|
devshb
Senior Member
United Kingdom
1904 Posts |
Posted - November 24 2009 : 07:36:36
|
From what I can see in the version of shopmail.asp that I've got, userids/pwds are only used in:
JMAIL JMAIL43 CDOSYS
Also, not all of those types are using the same settings; some are using the Xemailuserid and xemailpassword settings in the site-setup tab (ie the database config options), whilst other types are using the settings from the shop$config.asp file.
So, you'd need to set both of those options in the setup-tab in admin, as well as in shop$config.asp, and then use one of the mail-types mentioned above
Simon Barnaby Developer [email protected] www.BigYellowZone.com Web Design, Online Marketing and VPASP addons |
|
|
johnhardy
Starting Member
United Kingdom
46 Posts |
Posted - November 24 2009 : 11:41:42
|
Thanks Simon I am obviously doing this all wrong.
In the setup tab in shop$config.asp I selected jmail from the drop down list =================== In shop$config.asp I entered similar const xmailusername = "[email protected]" 'If you are using CDOSYS as your email system it requires a username, enter it here const xmailpassword = "password" 'If you are using CDOSYS as your email system it requires a password, enter it here. =================== Inshopmail entered email details at line 92 If ucase(Mailtype) = "JMAIL" Then Set Mailer = Server.CreateObject("JMail.SMTPMail") if err.number<> 0 then mailerror= getlang("langmailerror") & " " & mailtype HandleMailError mailerror exit sub end if Mailer.ServerAddress = my_system If getconfig("xemailpassword")<>"password" then mailer.mailserverpassword=getconfig("xemailpassword") end if if getconfig("Xemailuserid")<>"[email protected]" then mailer.mailserverusername=getconfig("xemailuserid") end if But I still get the 3 emails.
Is there something I should comment out perhaps? |
|
|
|
Topic |
|