[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Code to send email via SMTP

Posted on 2010-11-10
3
Medium Priority
?
876 Views
Last Modified: 2012-05-10
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?
0
Comment
Question by:wantabe2
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
Scott Madeira earned 1000 total points
ID: 34102927
I think the short answer to your question is no or at least not easily.

There is a processing script at that URL (results.php) that takes all of the data provided for the email and assembles it and then sends the email to the address you provide.  If you have access to that script then you may be able to modify it use your smtp configuration.

What is it that you are trying to do?
0
 
LVL 15

Author Comment

by:wantabe2
ID: 34103298
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!

0
 
LVL 15

Author Closing Comment

by:wantabe2
ID: 34158214
n/a
0

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

872 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question