473,760 Members | 9,717 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Not receiving automated emails on comcast or squirrelmail accounts

5 New Member
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

Expand|Select|Wrap|Line Numbers
  1. <%
  2. errorMsg=""
  3. submit1=trim(request.form("submit1"))
  4. if submit1="hitbutton" then
  5.     firstName=trim(request.form("sab_firstName"))
  6.     lastName=trim(request.form("sab_lastName"))
  7.     sbdc=trim(request.form("sab_sbdc"))
  8.     consultantName=trim(request.form("sab_consultantName"))
  9.     consultantEmail=trim(request.form("sab_consultantEmail"))
  10.     address1=trim(request.form("sab_address1"))
  11.     address2=trim(request.form("sab_address2"))
  12.     city=trim(request.form("sab_city"))
  13.     sab_state=trim(request.form("sab_state"))
  14.     zip=trim(request.form("sab_zip"))
  15.     areaCode=trim(request.form("sab_areacode"))
  16.     phone1=trim(request.form("sab_phone1"))
  17.     phone2=trim(request.form("sab_phone2"))
  18.     sab_emailAddr=trim(request.form("sab_emailAddr"))
  19.     password=trim(request.form("sab_password"))
  20.  
  21.     'first check if email is unique
  22.     theSQL="select count(emailAddr) as thecount from SAB_User where ltrim(rtrim(upper(emailAddr)))='"+replace(ucase(sab_emailAddr),"'","''")+"'"
  23.     set rs=myconn.execute(theSQL)
  24.     if rs.fields("thecount") > 0 then
  25.         errorMsg="There is already a user created with this email address. Please login.<br />"
  26.     else
  27.         'insert data into table
  28.         theSQL="insert into SAB_User (firstName,lastName,sbdc,consultantName,consultantEmail,address1,address2,city,sab_state,zip,areacode,phone1,phone2,emailAddr,password,entrydate,editdate) "
  29.         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())"
  30.  
  31.         'response.write(theSQL)
  32.         myConn.execute(theSQL)
  33.         session("sab_userID")=""
  34.         theSQL="select * from sab_user where emailAddr='" + replace(sab_emailAddr,"'","''") + "'"
  35.         set rs=myConn.execute(theSQL)
  36.         session("sab_userID")=rs.fields("userID")
  37.  
  38.         sql="insert into sab_course (userID,sec1_pg,startdate) values ("+trim(rs.fields("userID"))+",1,getdate())"
  39.         myConn.execute(sql)
  40.  
  41.         'Welcome Email
  42.         set myMail=createobject("cdo.message")
  43.         myMail.subject="Welcome to Starting a Business Tutorial"
  44.         myMail.from="lee@primerinc.com"
  45.         myMail.To=rs.fields("firstName") + " " + rs.fields("lastName") + " " + "<"+ sab_emailAddr +">"        
  46.         myMail.textBody="Your User Id: " + sab_emailAddr + chr(13) + chr(10) + "Your password is: " + password
  47.         myMail.send
  48.         set myMail=nothing
  49.         set rs=nothing
  50.  
  51.         response.Redirect("sec1_intro.asp")
  52.  
  53.     end if
  54.  
  55. end if
  56.  
  57. %>
  58.  
Jun 21 '07 #1
0 1226

Sign in to post your reply or Sign up for a free account.

Similar topics

0
3969
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...
2
2132
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?
21
3920
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.
13
1809
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...
2
2224
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
7
1274
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?
2
1265
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
1
2287
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,
1
2036
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
0
9521
marktang
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...
0
9333
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,...
0
9945
jinu1996
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...
1
9900
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,...
0
9765
tracyyun
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...
0
6599
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();...
0
5214
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...
3
3442
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2733
bsmnconsultancy
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.