PHP
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Tutorialized ForumsWeb Design & DevelopmentPHP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Tutorialized Forums Sponsor:
Be the architects of evolution and help create the mobile internet future. It’s your move---enter to win here!
  #1  
Old April 25th, 2008, 02:01 AM
samemickey samemickey is offline
Registered User
Tutorialized Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 1 samemickey User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 m 33 sec
Reputation Power: 0
PHP Mail to one email and autoresponder email to another with attachement

HI,

I have a form which on submission will send the filled info by any user to my email id. This work fine but now I want a code which would make it possible to send an pdf attachment to the user's email.

The requirement here is to send the filled info to my id and the pdf as attachment to the user's Id in an autoresponder email when the form is submitted.

I have a form with the following inputs fields: Name, Company Name, Title(dropdown), Phone, Fax, E-mail and feedback. and here the code to send the email:

? php



$mail_to = "me@123.com";

$mail_from = "$lp_email";

$mail_headers = "From: $mail_from";

$mail_subject = "Quick Contact ";


$mail_body = "Name: $lp_name\r\nCompany Name: $lp_cname\rTitle: $lp_title\rPhone: $lp_phone\rFax: $lp_fax\r\nEmail: $lp_email\r\nFeedback: $lp_query\r\n";

if (mail($mail_to, $mail_subject, $mail_body, $mail_headers)) {
echo("Succesfully sent your request. We'll contact you soon." );
} else {
echo ("An error has Occured while attempting to send mail");
}

}

? >

Reply With Quote
Reply

Viewing: Tutorialized ForumsWeb Design & DevelopmentPHP > PHP Mail to one email and autoresponder email to another with attachement


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway