Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* тема/subject */
- $subject = "Вы успешно зарегистрировались в юредическом компании ";
- /* сообщение */
- $message = "Поздравляем с успешной регистрацией!<br /><br /> Ваш логин: $user_name<br /> Ваш пароль: $passwd";
- /* Для отправки HTML-почты вы можете установить шапку Content-type. */
- $headers= "MIME-Version: 1.0rn";
- $headers .= "Content-type: text/html; charset=iso-8859-1rn";
- /* дополнительные шапки */
- $headers .= "From: Yurist.tj <info@yurist.tj>rn";
- $headers .= "Cc: info@yurist.tjrn";
- $headers .= "Bcc: info@yurist.tjrn";
- /* и теперь отправим из */
- mail($to, $subject, $message, $headers);
- $res = $wpdb->query(
- $wpdb->prepare(
- "
- INSERT INTO lwr_details
- (
- experience_since_year,
- address,
- phone_no,
- website,
- current_work_org,
- work_position,
- city,
- education,
- about_me,
- show_email,
- avatar_post_id,
- user_id
- )
- values
- (
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %d,
- %d
- )
- ",
- $experience_since_year,
- $address,
- $tel_no,
- $site,
- $current_work_org,
- $work_position,
- $city,
- $education,
- $about_me,
- $show_email,
- $avatar_post_id,
- $user_id
- )
- );
- /* тема/subject */
- $subject = "Вы успешно зарегистрировались в юредическом компании ";
- /* сообщение */
- $message = "Поздравляем с успешной регистрацией!<br /><br /> Ваш логин: $user_name<br /> Ваш пароль: $passwd";
- /* Для отправки HTML-почты вы можете установить шапку Content-type. */
- $headers= "MIME-Version: 1.0rn";
- $headers .= "Content-type: text/html; charset=iso-8859-1rn";
- /* дополнительные шапки */
- $headers .= "From: Yurist.tj <info@yurist.tj>rn";
- $headers .= "Cc: info@yurist.tjrn";
- $headers .= "Bcc: info@yurist.tjrn";
- /* и теперь отправим из */
- mail($to, $subject, $message, $headers);
- $res = $wpdb->query(
- $wpdb->prepare(
- "
- INSERT INTO lwr_details
- (
- experience_since_year,
- address,
- phone_no,
- website,
- current_work_org,
- work_position,
- city,
- education,
- about_me,
- show_email,
- avatar_post_id,
- user_id
- )
- values
- (
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %s,
- %d,
- %d
- )
- ",
- $experience_since_year,
- $address,
- $tel_no,
- $site,
- $current_work_org,
- $work_position,
- $city,
- $education,
- $about_me,
- $show_email,
- $avatar_post_id,
- $user_id
- )
- );
- } else {
- $random_password = __('User already exists. Password inherited.');
- echo $random_password;
- }
- ?>`
- if ( is_wp_error( $attachment_id ) ) {
- echo "There was an error uploading the image.";
- } else {
- echo "Ошибка безопасности";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement