Semi-automated email script

Reply

Join Date: Jan 2005
Posts: 70
Reputation: Diode is on a distinguished road 
Solved Threads: 0
Diode's Avatar
Diode Diode is offline Offline
Junior Poster in Training

Semi-automated email script

 
0
  #1
Nov 7th, 2008
I'm making a site for a guy, and he needs a way to email all his customers with a single form to save time and be more efficient. I got the compose page done. But in the past, from my experience, when I sent myself emails generated from sendmail, some email services didn't accept them. They were blocked, didn't even make it to bulk or junk mail folders. This was more than likely because I used a bogus email from address. He has a host account registered, with email addresses to use for the site. But how would I integrate those into a PHP script? Wouldn't I still have to hard code an email address into the sendmail form? How would it know it's real, and not bogus?

I am going to put this into a loop, so that for each customer record that is queried in sequence, an email is sent to their email address. Pretty straightforward.

Thanks in advance.
Reply With Quote Quick reply to this message  
Join Date: Nov 2007
Posts: 596
Reputation: buddylee17 has a spectacular aura about buddylee17 has a spectacular aura about 
Solved Threads: 125
buddylee17's Avatar
buddylee17 buddylee17 is offline Offline
Posting Pro

Re: Semi-automated email script

 
0
  #2
Nov 7th, 2008
I use the class.phpmailer.php. It will add all the headers for you and will work for both plain text and html email. It works for hotmail, yahoo, gmail, and many others.
Lost time is never found again.
- Benjamin Franklin
Reply With Quote Quick reply to this message  
Join Date: Sep 2005
Posts: 1,079
Reputation: digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice digital-ether is just really nice 
Solved Threads: 66
Moderator
digital-ether's Avatar
digital-ether digital-ether is online now Online
Veteran Poster

Re: Semi-automated email script

 
0
  #3
Nov 11th, 2008
Originally Posted by Diode View Post
I'm making a site for a guy, and he needs a way to email all his customers with a single form to save time and be more efficient. I got the compose page done. But in the past, from my experience, when I sent myself emails generated from sendmail, some email services didn't accept them. They were blocked, didn't even make it to bulk or junk mail folders. This was more than likely because I used a bogus email from address. He has a host account registered, with email addresses to use for the site. But how would I integrate those into a PHP script? Wouldn't I still have to hard code an email address into the sendmail form? How would it know it's real, and not bogus?

I am going to put this into a loop, so that for each customer record that is queried in sequence, an email is sent to their email address. Pretty straightforward.

Thanks in advance.
What function are you using to send email.
You will have to hardcode the sender email address into that function since like you said, you need a valid sender email.
Some Mail Transfer Agents (MTAs) will try to validate sender email before accepting email or callback later for verification. Basically, if you have a valid sender email, then MTA responsible for that address will take care of any validation needed by the remote MTA for which the email is being delivered.
www.fijiwebdesign.com - web design and development and fun
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
Reply With Quote Quick reply to this message  
Join Date: Jan 2005
Posts: 70
Reputation: Diode is on a distinguished road 
Solved Threads: 0
Diode's Avatar
Diode Diode is offline Offline
Junior Poster in Training

Re: Semi-automated email script

 
0
  #4
Nov 11th, 2008
Originally Posted by digital-ether View Post
What function are you using to send email.
You will have to hardcode the sender email address into that function since like you said, you need a valid sender email.
Some Mail Transfer Agents (MTAs) will try to validate sender email before accepting email or callback later for verification. Basically, if you have a valid sender email, then MTA responsible for that address will take care of any validation needed by the remote MTA for which the email is being delivered.
Thanks. I was going to use mail().
Reply With Quote Quick reply to this message  
Join Date: May 2006
Posts: 1,845
Reputation: ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all ithelp is a name known to all 
Solved Threads: 119
ithelp's Avatar
ithelp ithelp is offline Offline
Posting Virtuoso

Re: Semi-automated email script

 
0
  #5
Nov 11th, 2008
It will go in spam box for sure.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC