| | |
Semi-automated email script
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
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.
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.
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
- Benjamin Franklin
•
•
•
•
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.
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!
Cpanel Email - Let users Register email accounts on your website upon registration
Ajax Chat - Fully browser based chat!
•
•
•
•
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.
It will go in spam box for sure.
![]() |
Other Threads in the PHP Forum
- Previous Thread: problem with count and displaying result
- Next Thread: How install APC(Alternative PHP Cache) in window
| Thread Tools | Search this Thread |
ajax apache api array beginner beneath binary broadband broken button cakephp checkbox class cms code countingeverycharactersfromastring crack cron curl database date decode display dynamic echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail match md5 menu mlm multiple mysql mysql_real_escape_string oop paypal pdf php problem protocol query radio random recursion regex remote script search server session sessions sms smtp soap source space sql strip_tags survey syntax system table tutorial undefined update upload url validator variable video virus votedown web window.onbeforeunload=closeme; xml youtube






