 |
|
 |
I am very new to ASP and am trying to get this to work. The CDO code itself would submit, but I would get no email so I added the send mail configs as follows under msg.from = mailfrom on line 66. I have the correct sendmail.server.com in there as well. Now the page submits, but gives me HTTP 500 internal error.
msg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
msg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="sendmail.mjmi.com"
msg.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
msg.Configuration.Fields.Update
What am I doing wrong here?
Thanks for any help.
|
|
|
|
 |
|
 |
Well first nice script man Very easy to setup
I just set it up on a form I had.
I added the correct field names in the format shown in the sample email template.
I also set the neccessary hidden fields in my form.
I get the message however the last 5 fields come up empty even though I field them out.
I have triple checked the field names and they are fine.
Thanks, Kenny
|
|
|
|
 |
|
 |
I figured it out myself, hopefully this helps someone.
The problem was the carriage returns etc in the remaing fields which were all text areas.
I found nice little script which I call before submitting it replaces all my carriage returns with
http://javascript.internet.com/forms/removereturns.html
I also put my destinations in my email template within PRE tags. That saved any extra spaces tabs etc that was in the info.
For Example: [$TextArea1]
And once again great job on this script man!
I'm gonna look like a genius when I show them this
|
|
|
|
 |
|
 |
Above example should be:
[$TextArea1$]
|
|
|
|
 |
|
 |
I am new to ASP. Can you help me on how to work on it. Because i read through your note and found not really understand.
I worked on it but it doesn't work. program just jump to your data text mode of sendmail_cdo.asp.
|
|
|
|
 |
|
 |
I have the exact same issue. Did you ever get it resolved?
Chee Shai Choon wrote: program just jump to your data text mode of sendmail_cdo.asp. [Confused]
|
|
|
|
 |
|
 |
I see that other people have had this problem.... did anyone figure out what was causing the problem?
CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
sendmail_cdo.asp, line 120
Any help would be appreciated !
Nicola
|
|
|
|
 |
|
|
 |
|
 |
I love this code.. it works great and in a great way... I love using the HTML Template... but I am having to change my servers over to Linux and am also having to change my scripting to PHP.. which I am unfamiliar with..
Does anyone know of a PHP code that works like this one.. with the HTML template..?? I need to process 185 var to send through email.. and doing it through the HTML Template is allot easier than any other way I can think of...
HELP PLS... thank you..
|
|
|
|
 |
|
 |
CDO.Message.1 error '80040220'
The "SendUsing" configuration value is invalid.
/symes/script/sendmail_cdo.asp, line 120
Please help? I tried using the other script but the error was worse.
http://www.fatboyzracing.com.au/symes/contact.asp
|
|
|
|
 |
|
 |
im getting the same error - any ideas whats going wrong?
|
|
|
|
 |
|
 |
Same hear. Why hasnt this been addressed?
|
|
|
|
 |
|
 |
Gave me the bare bones for what I was looking for. I have now adapted the script to send two templates, one to the sender as confirmation and full details to myself for action.
If anyone else requires this function let me know.
Many Thanks.
|
|
|
|
 |
|
 |
Hey Chris, Care to share this?
paul AT worldofrugs.com
|
|
|
|
 |
|
 |
Please help. I get this error when I just put the form unmodified onto the server I need this form to work for.
The "SendUsing" configuration value is invalid.
/test/sendmail_cdo.asp, line 120
Only thing I did change was the emails its needed to send.
Thank you.
Amanda
|
|
|
|
 |
|
|
 |
|
 |
I've now sorted the basis of a solution to my needs.
Anyone else interested may want to have a look at: www.4guysfromrolla.com/webtech/faq/Email/faq3.shtml (Sending an Email with an Attachment: Taylor). Loads of good stuff on this site for struggling coders.
Once you realise that Taylor's 'objMail' is the same as Nathan's 'msg' you can identify and add the line that's needed to add your attachment to the mail. You'll need to make sure that your web server knows the path to where the file is, so you may want to use WebThang's really useful Path Finder from www.webthang.co.uk.
I wanted to send a reply email back to the form filler with an attachment, so I added a copy of Nathan's code underneath the first (after set msg = nothing), dimensioning a second set of variables (eg. msg2, subject2 etc.. – and following these all the way through to 'set msg2 = nothing %>') so that this second instruction to send an email was aimed back at the sender's address lifted from the form and from some suitable mailfrom address within my domain (your host may be checking that forms are not being misused or hijacked); and added the attachment line 'msg2.attachfile("e:\domains\whatever the rest of the path is...\attachment.pdf")' [remove the apostrophes] in after 'msg2.subject = subject2'.
One thing that took me ages to spot was that there is no '=' between the attachfile and the file path. I just dumped one in there without thinking and it drove me batty before I spotted it!
I've got other stuff that I now want to add to this basic solution to what I need to acheive, and I'm sure there's a lot of cleaning up that could be done; but I find once you can achieve something that works, then you can deconstruct, understand (leave yourself lots of annotations within the code to remind you what each bit is doing) and then improve it by adding the other functionality that you need.
A quiet room with all the family out of the house also helps!!
Hope that helps solve a problem for someone else too.
op
|
|
|
|
 |
|
 |
Been using this as my standard form handler for a couple of years and it's never let me down. Thanks.
Now I'm wondering if I can use this as the basis of a script to return an email with a file attachment to the form filler (based on their selection of a PDF data sheet on the form).
I can see my way through identifying the selected file/s, passing that through and going and getting it via fso, but am stuck on actually attaching it to a reply mail within the existing script.
Or am I looking at a scratch start? Anyone implemented anything similar?
Cheers
op
|
|
|
|
 |
|
 |
Here's the form http://www.f9840.com/sendmail/sampleform.htm. Seems to work OK but don't get the email.
|
|
|
|
 |
|
 |
If the form executes properly and seems to think it has sent the mail but you're not receiving it, I'd suggest looking at the mail server. The script is working fine.
NATHAN RIDLEY
Web Application Developer
email: snowdevil [@] gmail.com
web/blog: www.ersysgroup.com[ ^]
|
|
|
|
 |
|
 |
I've reworked the form to act as it should for me, but when I click 'send', internet explorer just opens the .asp file instead of sending an email and showing the 'thanks.htm' page.
what am I doing wrong here?
maybe I missed something in IIS ?
|
|
|
|
 |
|
 |
Is it possible you're calling it like this:
C:\dev\blah\myform.htm
instead of like this:
http://localhost/mywebsite/myform.htm
Because doing the former will definitely create the problem you described.
NATHAN RIDLEY
Web Application Developer
email: snowdevil [@] gmail.com
web/blog: www.ersysgroup.com[ ^]
|
|
|
|
 |
|
 |
thanks Nathan.
so I've corrected that silly error, and I'm calling my form through http:// now......only now when the 'sendmail_cdo.asp' is called (after hitting the submit button) I get an 'HTTP Error 404 - File or directory not found'.
They're all sitting there ready to go, but the .asp file is supposedly not there.
not sure what I'm missing.
|
|
|
|
 |
|
 |
I am also getting the 404 error. Any help would be greatly appreciated (utter newb here).
|
|
|
|
 |
|
 |
I had named my text area 'message' as soon as I changed this it worked ok, drives you insane sometimes doesn't it.
|
|
|
|
 |