Avatar of wantabe2
wantabe2
Flag for United States of America asked on

Code to send email via SMTP

I'm trying to edit this code but can't seem to get it to work like it need it to. This code works fine:

<SCRIPT type="text/javascript" src="writeFlash.js"></SCRIPT>
<SCRIPT language="JavaScript">
      writeFlash("v"+rand(1)+"uspo_test.swf","100%","100%",{bgcolor:"#FFFFFF",menu:"false",version:"8,0,0,0",name:"QWContent",allowscriptaccess:"always"},{sendURL:"http://www.questionwritertracker.com/collator/results.php?email=wantabe2@gmail.com",altSendURL:"http://www.xquestion.com/results/resultsqw3.php?email=wantabe2@gmail.com",forwardURL:"http://www.google.com"});      
</SCRIPT>

This code sends an email to the email address wantabe2@gmail.gom as listed in the code. Instead of the code pointing to the websites listed in the code, is there a way for me to edit it so I can input my own SMTP server? It looks like to code goes to a URL & then uses it to send the email but can't I not use my own 192.168.1.5 SMTP server & edit that line?
JavaScriptHTMLJScript

Avatar of undefined
Last Comment
wantabe2

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Scott Madeira

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
wantabe2

ASKER
Could I create my own results.php file & put it on my webserver. Then change hte URL in this code to point to http://mysite.com/results.php?


If so, I'm not that familair with PHP. I just need a results.php file with code in it to send an email to wantabe2@gmail.com. The SMTP server is 192.168.3.5. Is that possible?

If that will work that will be great!

wantabe2

ASKER
n/a
Your help has saved me hundreds of hours of internet surfing.
fblack61