I'm using the following code to send a welcome letter to a user after they've registered with their username/password. Everything seems to work, but when I test the registration with my squirrelmail accounts and comcast account, I don't receive the email, Gmail & some other accounts work fine.
Any help would be greatly appreciated.
Thanks in advance.
Lee -
<%
-
errorMsg=""
-
submit1=trim(request.form("submit1"))
-
if submit1="hitbutton" then
-
firstName=trim(request.form("sab_firstName"))
-
lastName=trim(request.form("sab_lastName"))
-
sbdc=trim(request.form("sab_sbdc"))
-
consultantName=trim(request.form("sab_consultantName"))
-
consultantEmail=trim(request.form("sab_consultantEmail"))
-
address1=trim(request.form("sab_address1"))
-
address2=trim(request.form("sab_address2"))
-
city=trim(request.form("sab_city"))
-
sab_state=trim(request.form("sab_state"))
-
zip=trim(request.form("sab_zip"))
-
areaCode=trim(request.form("sab_areacode"))
-
phone1=trim(request.form("sab_phone1"))
-
phone2=trim(request.form("sab_phone2"))
-
sab_emailAddr=trim(request.form("sab_emailAddr"))
-
password=trim(request.form("sab_password"))
-
-
'first check if email is unique
-
theSQL="select count(emailAddr) as thecount from SAB_User where ltrim(rtrim(upper(emailAddr)))='"+replace(ucase(sab_emailAddr),"'","''")+"'"
-
set rs=myconn.execute(theSQL)
-
if rs.fields("thecount") > 0 then
-
errorMsg="There is already a user created with this email address. Please login.<br />"
-
else
-
'insert data into table
-
theSQL="insert into SAB_User (firstName,lastName,sbdc,consultantName,consultantEmail,address1,address2,city,sab_state,zip,areacode,phone1,phone2,emailAddr,password,entrydate,editdate) "
-
theSQL=theSQL + "values ('"+replace(firstName,"'","''")+"','"+replace(lastName,"'","''")+"',"+sbdc+",'"+replace(consultantName,"'","''")+"','"+replace(consultantEmail,"'","''")+"','"+replace(address1,"'","''")+"','"+replace(address2,"'","''")+"','"+replace(city,"'","''")+"','"+sab_state+"','"+zip+"','"+areacode+"','"+phone1+"','"+phone2+"','"+replace(sab_emailAddr,"'","''")+"','"+replace(password,"'","''")+"',getdate(),getdate())"
-
-
'response.write(theSQL)
-
myConn.execute(theSQL)
-
session("sab_userID")=""
-
theSQL="select * from sab_user where emailAddr='" + replace(sab_emailAddr,"'","''") + "'"
-
set rs=myConn.execute(theSQL)
-
session("sab_userID")=rs.fields("userID")
-
-
sql="insert into sab_course (userID,sec1_pg,startdate) values ("+trim(rs.fields("userID"))+",1,getdate())"
-
myConn.execute(sql)
-
-
'Welcome Email
-
set myMail=createobject("cdo.message")
-
myMail.subject="Welcome to Starting a Business Tutorial"
-
myMail.from="lee@primerinc.com"
-
myMail.To=rs.fields("firstName") + " " + rs.fields("lastName") + " " + "<"+ sab_emailAddr +">"
-
myMail.textBody="Your User Id: " + sab_emailAddr + chr(13) + chr(10) + "Your password is: " + password
-
myMail.send
-
set myMail=nothing
-
set rs=nothing
-
-
response.Redirect("sec1_intro.asp")
-
-
end if
-
-
end if
-
-
%>
-
0 1226 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Andrew Montgomery |
last post by:
If anybody has experienced the following SquirrelMail error:
Warning: fsockopen(): unable to connect to xx.xx.xx.xx:143 in
/home/virtual/siteX/fst/var/www/squirrelmail/functions/imap_general.php
on line 172
or something similar, then listen up, here's the solution. PHP 4.3.x
has known bugs with file handle and socket leak issues. This is true
up to PHP 4.3.3. The only solution for now is to revert to PHP 4.2.x.
I'm told that this...
|
by: Fokke Nauta |
last post by:
Hi all,
I try to set up an email web-server with an IMAP interface. For the web
interface I use Squirrelmail. PHP is installed. The web server is Xitami.
PHP runs well, but Squirrelmail doesn't. The redirection in PHP under Xitami
does not work. I followed some hints and tips, but it didn't work out for
me.
Is there anybody who has experience with this setup and may be willing to
help me out?
|
by: Stefan Richter |
last post by:
Hi, after coding for days on stupid form validations -
Like:
strings (min / max length), numbers(min / max value), money(min / max
value), postcodes(min / max value), telefon numbers,
email adresses and so on.
I thought it might be a better way to programm an automated, dynamic
form validation that works for all kinds of fields, shows the
necessary error messages and highlights the coresponding form fields.
|
by: Benny |
last post by:
Dear All,
I need to send a set of Emails from my application (reminders) each month
1st. Is there anyway in ASP scripts to trigger an event to run
automatically? I have no dedicated server, so no DLLs or Scheduler scripts
can be used. Also adding the trigger script in the application object may
not send emails in time, as we have not enough visitors to that application.
Is there any way other than 'Clicking a Send button'?
Any support...
|
by: kimberly.shaffer |
last post by:
Okay, I can automate sending of multiple emails with records using
Groupwise and Access DB. But now what I need to do is send multiple
fields associated with one field out automatically and can't figure out
how to do it.
For instance, my records look like this:
strEmail strGroup
jjohns@comcast.net catlovers
jjohns@comcast.net doglovers
| |
by: tshad |
last post by:
I am trying to figure out the best way to send automated emails?
I have emails that I want to send out to certain clients that need them
either daily or weekly.
How would I do in asp.net?
Or is it better to write normal app to handle this that I run from the
schedular?
|
by: Gene Ariani |
last post by:
I have been asked to create an application to automatically send emails when
a date is reached. These dates are in a table in a database.
How would I approach this since I have never done something like this.
Any direction is appreciated it.
Thanks
Gene
|
by: |
last post by:
Thanks for your help.
I wish I could do that; however our IT department is ... Zelis ... About
security; it's a school district, so lots of confidential data, etc, etc
(their reason).
Oh well, I'll look for an imap server on the network if I can, but I doubt
I'll find it normally.
If anyone else has any other info, I'd appreciate it.
THX Much,
|
by: lekshmi200 |
last post by:
I want to send automated emails. I want to send emails to some persons in the table at the end of the day like 10.00 pm every day. How do I do that?
I am using python and mysql.pliseeeeeee give me a reply
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |