Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Timo Stubenrauch wrote: hi is it possible to use sender data with smtp data and not mail server sender data?
each time when i contact a Advertiser over the form than read the server sender data.
Please Log in or Create an account to join the conversation.
public static function doContact($item) {
$host = JFactory::getURI()->getHost();if($host == 'localhost') {return 0;}
$config = JFactory::getConfig();$siteName = $config->get('sitename');$emailSubject = $item->subject.' - '.$siteName;$userid = JomclUtils::getColumn('adverts', 'userid', $item->id);$user = JFactory::getUser($userid);$emailBody = JText::sprintf('CONTACT_ADVERTISER_EMAIL_BODY', $item->name, base64_decode($item->url), $item->message);$from= $item->email;$to= $user->email;$subject = $emailSubject;$message = $emailBody;$headers = 'From:YOURMAIL@YOURDOMAIN.COM' . "\r\n" .
'Reply-To:'.$from. "\r\n" .
'X-Mailer: PHP/' . phpversion();return mail($to, $subject, $message, $headers);}
Please Log in or Create an account to join the conversation.