Link to home
Start Free TrialLog in
Avatar of wantabe2
wantabe2Flag 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?
ASKER CERTIFIED SOLUTION
Avatar of Scott Madeira
Scott Madeira
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of 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!

n/a