Solved

Code to send email via SMTP

Posted on 2010-11-10
3
857 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 500 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

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Summernote and form validation 10 40
Element alignment and word wrapping 9 24
jqplot Pie Chart 2 12
Cordova Camera plugin fails 2 18
Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
This article discusses how to create an extensible mechanism for linked drop downs.
In this tutorial viewers will learn how to style elements, such a divs, with a "drop shadow" effect using the CSS box-shadow property Start with a normal styled element, such as a div.: In the element's style, type the box shadow property: "box-shad…
The viewer will the learn the benefit of plain text editors and code an HTML5 based template for use in further tutorials.

707 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now