@@ 139-167 (lines=29) @@ | ||
136 | } |
|
137 | //send 'received!' mail |
|
138 | //if (lx_getmoduleoption('mailtosender') && $address) { |
|
139 | if ( $xoopsModuleConfig['mailtosender'] == 1 && $address) { |
|
140 | $conf_subject = _MD_LEXIKON_THANKS2; |
|
141 | $userMessage = sprintf(_MD_LEXIKON_GOODDAY2, $logname); |
|
142 | $userMessage .= "\n\n"; |
|
143 | $userMessage .= sprintf(_MD_LEXIKON_THANKYOU,$xoopsConfig['sitename']); |
|
144 | $userMessage .= "\n"; |
|
145 | $userMessage .= sprintf(_MD_LEXIKON_REQUESTSENT,$xoopsConfig['sitename']); |
|
146 | $userMessage .= "\n"; |
|
147 | $userMessage .= "--------------\n"; |
|
148 | $userMessage .= "".$xoopsConfig['sitename']." "._MD_LEXIKON_WEBMASTER."\n"; |
|
149 | $userMessage .= "".$xoopsConfig['adminmail'].""; |
|
150 | $xoopsMailer = getMailer(); |
|
151 | $xoopsMailer->useMail(); |
|
152 | $xoopsMailer->setToEmails($address); |
|
153 | $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); |
|
154 | $xoopsMailer->setFromName($xoopsConfig['sitename']); |
|
155 | $xoopsMailer->setSubject($conf_subject); |
|
156 | $xoopsMailer->setBody($userMessage); |
|
157 | $xoopsMailer->send(); |
|
158 | ||
159 | $messagesent = sprintf(_MD_LEXIKON_MESSAGESENT,$xoopsConfig['sitename'])."<br />"._MD_LEXIKON_THANKS1.""; |
|
160 | $messagesent .= sprintf(_MD_LEXIKON_SENTCONFIRMMAIL,$address); |
|
161 | //} |
|
162 | //if ($xoopsModuleConfig['mailtoadmin'] == 1) { |
|
163 | //$messagesent .= sprintf(_MD_LEXIKON_SENTCONFIRMMAIL,$address); |
|
164 | } else { |
|
165 | //$messagesent = sprintf(_MD_LEXIKON_SENTCONFIRMMAIL,$address); |
|
166 | $messagesent = sprintf(_MD_LEXIKON_MESSAGESENT,$xoopsConfig['sitename'])."<br />"._MD_LEXIKON_THANKS1.""; |
|
167 | } |
|
168 | redirect_header("index.php", 2, $messagesent ); |
|
169 | } |
|
170 |
@@ 238-268 (lines=31) @@ | ||
235 | //if ( $xoopsModuleConfig['autoapprove'] == 1 ) { |
|
236 | if ( $autoapprove == 1 ) { |
|
237 | redirect_header( "index.php", 2, _MD_LEXIKON_RECEIVEDANDAPPROVED ); |
|
238 | } else { |
|
239 | //send received mail |
|
240 | //if (lx_getmoduleoption('mailtosender') && $usermail) { |
|
241 | if ( $xoopsModuleConfig['mailtosender'] == 1 && $usermail) { |
|
242 | $conf_subject = _MD_LEXIKON_THANKS3; |
|
243 | $userMessage = sprintf(_MD_LEXIKON_GOODDAY2, $username); |
|
244 | $userMessage .= "\n\n"; |
|
245 | $userMessage .= sprintf(_MD_LEXIKON_THANKYOU3,$xoopsConfig['sitename']); |
|
246 | $userMessage .= "\n"; |
|
247 | $userMessage .= sprintf(_MD_LEXIKON_SUBMISSIONSENT,$xoopsConfig['sitename']); |
|
248 | $userMessage .= "\n"; |
|
249 | $userMessage .= "--------------\n"; |
|
250 | $userMessage .= "".$xoopsConfig['sitename']." "._MD_LEXIKON_WEBMASTER."\n"; |
|
251 | $userMessage .= "".$xoopsConfig['adminmail'].""; |
|
252 | ||
253 | $xoopsMailer = getMailer(); |
|
254 | $xoopsMailer->useMail(); |
|
255 | $xoopsMailer->multimailer->IsHTML(true); |
|
256 | $xoopsMailer->setToEmails($usermail); |
|
257 | $xoopsMailer->setFromEmail($xoopsConfig['adminmail']); |
|
258 | $xoopsMailer->setFromName($xoopsConfig['sitename']); |
|
259 | $xoopsMailer->setSubject($conf_subject); |
|
260 | $xoopsMailer->setBody($userMessage); |
|
261 | $xoopsMailer->send(); |
|
262 | $messagesent = _MD_LEXIKON_RECEIVED."<br />"._MD_LEXIKON_THANKS1.""; |
|
263 | $messagesent .= sprintf(_MD_LEXIKON_SENTCONFIRMMAIL,$usermail); |
|
264 | } else { |
|
265 | $messagesent = sprintf(_MD_LEXIKON_RECEIVED)."<br />"._MD_LEXIKON_THANKS1.""; |
|
266 | } |
|
267 | redirect_header("index.php", 2, $messagesent ); |
|
268 | } |
|
269 | } else { |
|
270 | redirect_header( "submit.php", 2, _MD_LEXIKON_ERRORSAVINGDB ); |
|
271 | } |