?
Solved

Code to send email via SMTP

Posted on 2010-11-10
3
Medium Priority
?
872 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

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

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
In this tutorial viewers will learn how to code links for mobile sites that, once clicked, send a call or text to a specified number. For a telephone link (once clicked, calls a number), begin with a normal "<a href=" link tag. For the href, specify…
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

770 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