| | |
from in email
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
hi
i am using php email function .in from address i am getting my ftp email id
eg username:form,my mail id is as form@connect.com but i want to give my own address...dynamically what i give.
i am using php email function .in from address i am getting my ftp email id
eg username:form,my mail id is as form@connect.com but i want to give my own address...dynamically what i give.
$body1="<html><head></head><body>";
$body1.="<table width='850px' border='0' align='center' cellpadding='0' cellspacing='0' style='vertical-align:top;'>";
$body1.="<tr><td><p>If you have net banking facility you can do an online transfer of just Rs.500 to the account ";
$body1.="</body></html>";
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-Type: text/html; charset=iso-8859-1" . "\r\n";
if (strlen($body2)>998) {
$headers .= "Content-Transfer-Encoding: base64;" . "\r\n";
$headers .= 'From: ' . $em . "\r\n" .'X-Mailer: PHP/' . phpversion();
}•
•
Join Date: Nov 2007
Posts: 183
Reputation:
Solved Threads: 5
hi
can anybody help in email.i want how to give from address.
eg
$from="l.w@gmail.com"
but in my mail i am getting from addr as
l.w@bluehost.com
bluehost is my server name
please tell me how to avoid this
can anybody help in email.i want how to give from address.
eg
$from="l.w@gmail.com"
but in my mail i am getting from addr as
l.w@bluehost.com
bluehost is my server name
please tell me how to avoid this
Try this and see if it helps:
You can also visit http://th2.php.net/function.mail to find out more information.
You supposed to have posted the full code of the script that was giving the error, so that the community wouldn't have to guess. Doing that would most likely bring more response.
PHP Syntax (Toggle Plain Text)
<?php $headers = 'From: form@connect.com' . "\r\n" . 'Reply-To: form@connect.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); mail($to, $subject, $message, $headers); ?>
You can also visit http://th2.php.net/function.mail to find out more information.
You supposed to have posted the full code of the script that was giving the error, so that the community wouldn't have to guess. Doing that would most likely bring more response.
Last edited by mexabet; Sep 16th, 2008 at 9:51 am.
![]() |
Similar Threads
- Exchange 2000/Outlook; receive each alias' email into different folders/inboxes (Windows NT / 2000 / XP)
- Retrieve email I sent to the wrong person (Web Browsers)
- help setting up web server (Linux Servers and Apache)
- Sending HTML email via PHP mail function (PHP)
- How can I set up my own email a/c with a domain name using microsoft outlook/express (Web Browsers)
- email banners in exchange 2k server (Windows NT / 2000 / XP)
- IE won't let me access threads. Could someone email me a solution please? (Web Browsers)
Other Threads in the PHP Forum
- Previous Thread: Grid problems
- Next Thread: sleep function
Views: 476 | Replies: 2
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic ebooks echo email error file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla jquery js limit link login loop mail mediawiki menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search select server sessions sms soap source space speed sql stored structure subdomain syntax system table tutorial update updates upload url validation validator variable video web xml youtube





